org.openrdf.query.algebra.evaluation.federation
Class ServiceJoinIterator
java.lang.Object
info.aduna.iteration.CloseableIterationBase<E,X>
info.aduna.iteration.LookAheadIteration<T,QueryEvaluationException>
org.openrdf.query.algebra.evaluation.federation.JoinExecutorBase<BindingSet>
org.openrdf.query.algebra.evaluation.federation.ServiceJoinIterator
- All Implemented Interfaces:
- CloseableIteration<BindingSet,QueryEvaluationException>, Iteration<BindingSet,QueryEvaluationException>
public class ServiceJoinIterator
- extends JoinExecutorBase<BindingSet>
Iterator for efficient SERVICE evaluation (vectored).
SERVICE is the right handside argument of this join.
- Author:
- Andreas Schwarte
|
Method Summary |
protected void |
handleBindings()
Implementations must implement this method to handle bindings. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
service
protected Service service
strategy
protected EvaluationStrategy strategy
ServiceJoinIterator
public ServiceJoinIterator(CloseableIteration<BindingSet,QueryEvaluationException> leftIter,
Service service,
BindingSet bindings,
EvaluationStrategy strategy)
throws QueryEvaluationException
- Construct a service join iteration to use vectored evaluation. The
constructor automatically starts evaluation.
- Parameters:
leftIter - rightArg - bindings -
- Throws:
QueryEvaluationException
handleBindings
protected void handleBindings()
throws Exception
- Description copied from class:
JoinExecutorBase
- Implementations must implement this method to handle bindings.
Use the following as a template
while (!closed && leftIter.hasNext()) {
// your code
}
and add results to rightQueue. Note that addResult() is implemented synchronized
and thus thread safe. In case you can guarantee sequential access, it is also
possible to directly access rightQueue
- Specified by:
handleBindings in class JoinExecutorBase<BindingSet>
- Throws:
Exception
Copyright © 2001-2012 Aduna. All Rights Reserved.