@Override public boolean equals(Object other) { if (other instanceof ArbitraryLengthPath) { ArbitraryLengthPath o = (ArbitraryLengthPath)other; return subjectVar.equals(o.getSubjectVar()) && pathExpression.equals(o.getPathExpression()) && objectVar.equals(o.getObjectVar()) && nullEquals(contextVar, o.getContextVar()) && scope.equals(o.getScope()); } return false; }
@Override public CloseableIteration<BindingSet, QueryEvaluationException> evaluate(ArbitraryLengthPath alp, final BindingSet bindings) throws QueryEvaluationException { final Scope scope = alp.getScope(); final Var subjectVar = alp.getSubjectVar(); final TupleExpr pathExpression = alp.getPathExpression(); final Var objVar = alp.getObjectVar(); final Var contextVar = alp.getContextVar(); final long minLength = alp.getMinLength(); return new LimitedSizePathIterator(this, scope, subjectVar, pathExpression, objVar, contextVar, minLength, bindings, used, maxSize); } @Override
public CloseableIteration<BindingSet, QueryEvaluationException> evaluate(ArbitraryLengthPath alp, final BindingSet bindings) throws QueryEvaluationException { final Scope scope = alp.getScope(); final Var subjectVar = alp.getSubjectVar(); final TupleExpr pathExpression = alp.getPathExpression(); final Var objVar = alp.getObjectVar(); final Var contextVar = alp.getContextVar(); final long minLength = alp.getMinLength(); return new PathIteration(this, scope, subjectVar, pathExpression, objVar, contextVar, minLength, bindings); }