java.lang.Object
org.apache.jena.sparql.util.PrintSerializableBase
org.apache.jena.sparql.engine.iterator.QueryIteratorBase
org.apache.jena.sparql.engine.iterator.QueryIter
- All Implemented Interfaces:
Iterator<Binding>
,org.apache.jena.atlas.io.Printable
,org.apache.jena.atlas.iterator.IteratorCloseable<Binding>
,org.apache.jena.atlas.lib.Closeable
,QueryIterator
,PrintSerializable
- Direct Known Subclasses:
QueryIter1
,QueryIter2
,QueryIterConcat
,QueryIterExtendByVar
,QueryIterNullIterator
,QueryIterPlainWrapper
,QueryIterSub
,QueryIterTracked
,QueryIterYieldN
This class provides the machinery for trackable iterators.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionfinal void
close()
static QueryIter
flatMap
(QueryIterator input, Function<Binding, QueryIterator> mapper, ExecutionContext execCxt) flatmap.int
static QueryIter
makeTracked
(QueryIterator qIter, ExecutionContext execCxt) static QueryIterator
map
(QueryIterator qIter, Map<Var, Var> varMapping) static QueryIterator
materialize
(QueryIterator qIter) static QueryIter
materialize
(QueryIterator qIter, ExecutionContext execCxt) void
output
(org.apache.jena.atlas.io.IndentedWriter out) Normally overridden for better informationvoid
output
(org.apache.jena.atlas.io.IndentedWriter out, SerializationContext sCxt) Methods inherited from class org.apache.jena.sparql.engine.iterator.QueryIteratorBase
cancel, 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 java.util.Iterator
forEachRemaining
Methods inherited from interface org.apache.jena.sparql.util.PrintSerializable
toString
Methods inherited from interface org.apache.jena.sparql.engine.QueryIterator
isJoinIdentity
-
Constructor Details
-
QueryIter
-
-
Method Details
-
makeTracked
-
materialize
-
materialize
-
map
-
flatMap
public static QueryIter flatMap(QueryIterator input, Function<Binding, QueryIterator> mapper, ExecutionContext execCxt) flatmap. The mapper may return null to signal "no iterator for this binding" -
close
public final void close()- Specified by:
close
in interfaceorg.apache.jena.atlas.lib.Closeable
- Overrides:
close
in classQueryIteratorBase
-
getExecContext
-
getIteratorNumber
public int getIteratorNumber() -
output
public void output(org.apache.jena.atlas.io.IndentedWriter out) Description copied from class:PrintSerializableBase
Normally overridden for better information- Specified by:
output
in interfaceorg.apache.jena.atlas.io.Printable
- Overrides:
output
in classPrintSerializableBase
-
output
-