com.hp.hpl.jena.sparql.engine.iterator
Class QueryIteratorTiming

java.lang.Object
  extended by com.hp.hpl.jena.sparql.util.PrintSerializableBase
      extended by com.hp.hpl.jena.sparql.engine.iterator.QueryIteratorBase
          extended by com.hp.hpl.jena.sparql.engine.iterator.QueryIteratorWrapper
              extended by com.hp.hpl.jena.sparql.engine.iterator.QueryIteratorTiming
All Implemented Interfaces:
QueryIterator, PrintSerializable, Iterator<Binding>, Printable, Closeable

public class QueryIteratorTiming
extends QueryIteratorWrapper


Field Summary
static int NotFinished
           
static int NotStarted
           
 
Fields inherited from class com.hp.hpl.jena.sparql.engine.iterator.QueryIteratorBase
traceIterators
 
Method Summary
 long getMillis()
          Return the elapsed time, in milliseconds, between the first call to this iterator and the close call.
static QueryIteratorTiming time(QueryIterator iter)
           
 
Methods inherited from class com.hp.hpl.jena.sparql.engine.iterator.QueryIteratorWrapper
output
 
Methods inherited from class com.hp.hpl.jena.sparql.engine.iterator.QueryIteratorBase
abort, cancel, cancelAllowContinue, close, debug, hasNext, next, nextBinding, remove
 
Methods inherited from class com.hp.hpl.jena.sparql.util.PrintSerializableBase
output, toString, toString
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface com.hp.hpl.jena.sparql.util.PrintSerializable
toString
 
Methods inherited from interface org.openjena.atlas.io.Printable
output
 

Field Detail

NotStarted

public static final int NotStarted
See Also:
Constant Field Values

NotFinished

public static final int NotFinished
See Also:
Constant Field Values
Method Detail

time

public static QueryIteratorTiming time(QueryIterator iter)

getMillis

public long getMillis()
Return the elapsed time, in milliseconds, between the first call to this iterator and the close call. Returns the time, or NotStarted (-2) or NotFinished (-1).



Licenced under the Apache License, Version 2.0