Class FedXPathIteration
java.lang.Object
org.eclipse.rdf4j.common.iteration.AbstractCloseableIteration<BindingSet, QueryEvaluationException>
org.eclipse.rdf4j.common.iteration.LookAheadIteration<BindingSet, QueryEvaluationException>
org.eclipse.rdf4j.federated.evaluation.iterator.FedXPathIteration
- All Implemented Interfaces:
AutoCloseable
,CloseableIteration<BindingSet, QueryEvaluationException>
,Iteration<BindingSet, QueryEvaluationException>
A iteration to evaluate property path expressions.
- See Also:
-
Nested Class Summary
Nested Classes -
Constructor Summary
ConstructorsConstructorDescriptionFedXPathIteration
(EvaluationStrategy strategy, StatementPattern.Scope scope, Var startVar, TupleExpr pathExpression, Var endVar, Var contextVar, long minLength, BindingSet bindings, QueryInfo queryInfo) -
Method Summary
Modifier and TypeMethodDescriptionprotected boolean
add
(Set<FedXPathIteration.ValuePair> valueSet, FedXPathIteration.ValuePair vp) protected boolean
addToQueue
(Queue<FedXPathIteration.ValuePair> valueQueue2, FedXPathIteration.ValuePair vp) createAnonVar
(String varName) protected BindingSet
Gets the next element.protected void
Called byAbstractCloseableIteration.close()
when it is called for the first time.protected boolean
isUnbound
(Var var, BindingSet bindings) Methods inherited from class org.eclipse.rdf4j.common.iteration.LookAheadIteration
hasNext, next, remove
Methods inherited from class org.eclipse.rdf4j.common.iteration.AbstractCloseableIteration
close, isClosed
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.eclipse.rdf4j.common.iteration.CloseableIteration
stream
-
Constructor Details
-
FedXPathIteration
public FedXPathIteration(EvaluationStrategy strategy, StatementPattern.Scope scope, Var startVar, TupleExpr pathExpression, Var endVar, Var contextVar, long minLength, BindingSet bindings, QueryInfo queryInfo) throws QueryEvaluationException - Throws:
QueryEvaluationException
-
-
Method Details
-
getNextElement
Description copied from class:LookAheadIteration
Gets the next element. Subclasses should implement this method so that it returns the next element.- Specified by:
getNextElement
in classLookAheadIteration<BindingSet, QueryEvaluationException>
- Returns:
- The next element, or null if no more elements are available.
- Throws:
QueryEvaluationException
-
handleClose
Description copied from class:AbstractCloseableIteration
Called 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:
handleClose
in classLookAheadIteration<BindingSet, QueryEvaluationException>
- Throws:
QueryEvaluationException
-
addToQueue
protected boolean addToQueue(Queue<FedXPathIteration.ValuePair> valueQueue2, FedXPathIteration.ValuePair vp) throws QueryEvaluationException - Parameters:
valueQueue2
-vp
-- Throws:
QueryEvaluationException
-
add
protected boolean add(Set<FedXPathIteration.ValuePair> valueSet, FedXPathIteration.ValuePair vp) throws QueryEvaluationException - Parameters:
valueSet
-vp
-- Throws:
QueryEvaluationException
-
isUnbound
-
createAnonVar
-