public class ServiceFallbackIteration extends JoinExecutorBase<BindingSet>
| Modifier and Type | Field and Description |
|---|---|
protected Collection<BindingSet> |
bindings |
protected FederatedService |
federatedService |
protected Set<String> |
projectionVars |
protected Service |
service |
closed, finished, leftIter, NEXT_JOIN_ID, rightArg, rightIter, rightQueue| Constructor and Description |
|---|
ServiceFallbackIteration(Service service,
Set<String> projectionVars,
Collection<BindingSet> bindings,
FederatedService federatedService) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
handleBindings()
Implementations must implement this method to handle bindings.
|
addResult, done, getNextElement, handleClose, isFinished, run, tosshasNext, next, removeclose, isClosedprotected final Service service
protected final FederatedService federatedService
protected final Collection<BindingSet> bindings
public ServiceFallbackIteration(Service service, Set<String> projectionVars, Collection<BindingSet> bindings, FederatedService federatedService) throws QueryEvaluationException
QueryEvaluationExceptionprotected void handleBindings()
throws Exception
JoinExecutorBase
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 rightQueuehandleBindings in class JoinExecutorBase<BindingSet>ExceptionCopyright © 2001-2015 Aduna. All Rights Reserved.