public class PathIteration extends LookAheadIteration<BindingSet,QueryEvaluationException>
Modifier and Type | Class and Description |
---|---|
protected static class |
PathIteration.ValuePair |
Constructor and Description |
---|
PathIteration(StrictEvaluationStrategy evaluationStrategyImpl,
StatementPattern.Scope scope,
Var startVar,
TupleExpr pathExpression,
Var endVar,
Var contextVar,
long minLength,
BindingSet bindings) |
Modifier and Type | Method and Description |
---|---|
protected boolean |
add(Set<PathIteration.ValuePair> valueSet,
PathIteration.ValuePair vp) |
protected boolean |
addToQueue(Queue<PathIteration.ValuePair> valueQueue2,
PathIteration.ValuePair vp) |
Var |
createAnonVar(String varName) |
protected BindingSet |
getNextElement()
Gets the next element.
|
protected void |
handleClose()
Called by
AbstractCloseableIteration.close() when it is called for the first time. |
protected boolean |
isUnbound(Var var,
BindingSet bindings) |
protected Queue<PathIteration.ValuePair> |
makeQueue() |
protected Set<PathIteration.ValuePair> |
makeSet() |
hasNext, next, remove
close, isClosed
public PathIteration(StrictEvaluationStrategy evaluationStrategyImpl, StatementPattern.Scope scope, Var startVar, TupleExpr pathExpression, Var endVar, Var contextVar, long minLength, BindingSet bindings) throws QueryEvaluationException
QueryEvaluationException
protected BindingSet getNextElement() throws QueryEvaluationException
LookAheadIteration
getNextElement
in class LookAheadIteration<BindingSet,QueryEvaluationException>
QueryEvaluationException
protected void handleClose() throws QueryEvaluationException
AbstractCloseableIteration
AbstractCloseableIteration.close()
when it is called for the first time. This method is only called once on each iteration.
By default, this method does nothing.handleClose
in class LookAheadIteration<BindingSet,QueryEvaluationException>
QueryEvaluationException
protected boolean addToQueue(Queue<PathIteration.ValuePair> valueQueue2, PathIteration.ValuePair vp) throws QueryEvaluationException
valueQueue2
- vp
- QueryEvaluationException
protected boolean add(Set<PathIteration.ValuePair> valueSet, PathIteration.ValuePair vp) throws QueryEvaluationException
valueSet
- vp
- QueryEvaluationException
protected boolean isUnbound(Var var, BindingSet bindings)
protected Set<PathIteration.ValuePair> makeSet()
protected Queue<PathIteration.ValuePair> makeQueue()
Copyright © 2015-2019 Eclipse Foundation. All Rights Reserved.