Class QueryIteratorTiming
- java.lang.Object
-
- org.apache.jena.sparql.util.PrintSerializableBase
-
- org.apache.jena.sparql.engine.iterator.QueryIteratorBase
-
- org.apache.jena.sparql.engine.iterator.QueryIteratorWrapper
-
- org.apache.jena.sparql.engine.iterator.QueryIteratorTiming
-
- All Implemented Interfaces:
java.util.Iterator<Binding>
,org.apache.jena.atlas.io.Printable
,org.apache.jena.atlas.lib.Closeable
,QueryIterator
,PrintSerializable
public class QueryIteratorTiming extends QueryIteratorWrapper
-
-
Field Summary
Fields Modifier and Type Field Description static int
NotFinished
static int
NotStarted
-
Fields inherited from class org.apache.jena.sparql.engine.iterator.QueryIteratorBase
traceIterators
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description 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 org.apache.jena.sparql.engine.iterator.QueryIteratorWrapper
output, output
-
Methods inherited from class org.apache.jena.sparql.engine.iterator.QueryIteratorBase
cancel, close, debug, hasNext, next, nextBinding, remove
-
Methods inherited from class org.apache.jena.sparql.util.PrintSerializableBase
toString, toString
-
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface org.apache.jena.sparql.util.PrintSerializable
toString
-
Methods inherited from interface org.apache.jena.sparql.engine.QueryIterator
isJoinIdentity
-
-
-
-
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).
-
-