Class FederatedDescribeIteration
java.lang.Object
org.eclipse.rdf4j.common.iteration.AbstractCloseableIteration<BindingSet>
org.eclipse.rdf4j.common.iteration.LookAheadIteration<BindingSet>
org.eclipse.rdf4j.query.algebra.evaluation.iterator.DescribeIteration
org.eclipse.rdf4j.federated.evaluation.iterator.FederatedDescribeIteration
- All Implemented Interfaces:
AutoCloseable, Iterator<BindingSet>, CloseableIteration<BindingSet>
Specialized
DescribeIteration for evaluation of DESCRIBE queries in the federation. ‚- Author:
- Andreas Schwarte
-
Field Summary
Fields inherited from class DescribeIteration
parentBindings, VARNAME_OBJECT, VARNAME_PREDICATE, VARNAME_SUBJECTModifier and TypeFieldDescriptionprotected BindingSetprotected static final Stringprotected static final Stringprotected static final StringFields inherited from interface CloseableIteration
EMPTY_STATEMENT_ITERATION -
Constructor Summary
ConstructorsConstructorDescriptionFederatedDescribeIteration(CloseableIteration<BindingSet> sourceIter, FederationEvaluationStrategy strategy, Set<String> describeExprNames, BindingSet parentBindings, QueryInfo queryInfo) -
Method Summary
Modifier and TypeMethodDescriptionprotected CloseableIteration<BindingSet> createNextIteration(Value subject, Value object) protected voidCalled byAbstractCloseableIteration.close()when it is called for the first time.Methods inherited from class DescribeIteration
getNextElementMethods inherited from class LookAheadIteration
hasNext, next, removeModifier and TypeMethodDescriptionfinal booleanhasNext()final BindingSetnext()voidremove()Throws anUnsupportedOperationException.Methods inherited from class AbstractCloseableIteration
close, isClosedModifier and TypeMethodDescriptionfinal voidclose()CallsAbstractCloseableIteration.handleClose()upon first call and makes sure the resource closures are only executed once.final booleanisClosed()Checks whether this CloseableIteration has been closed.Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface CloseableIteration
streamModifier and TypeMethodDescriptiondefault Stream<BindingSet> stream()Convert the results to a Java 8 Stream.Methods inherited from interface Iterator
forEachRemaining
-
Constructor Details
-
FederatedDescribeIteration
public FederatedDescribeIteration(CloseableIteration<BindingSet> sourceIter, FederationEvaluationStrategy strategy, Set<String> describeExprNames, BindingSet parentBindings, QueryInfo queryInfo)
-
-
Method Details
-
createNextIteration
protected CloseableIteration<BindingSet> createNextIteration(Value subject, Value object) throws QueryEvaluationException - Overrides:
createNextIterationin classDescribeIteration- Throws:
QueryEvaluationException
-
handleClose
Description copied from class:AbstractCloseableIterationCalled byAbstractCloseableIteration.close()when it is called for the first time. This method is only called once on each iteration. By default, this method does nothing.- Overrides:
handleClosein classDescribeIteration- Throws:
QueryEvaluationException
-