Class RepositoryFederatedService.FallbackServiceIteration
java.lang.Object
org.eclipse.rdf4j.common.iteration.AbstractCloseableIteration<BindingSet, QueryEvaluationException>
org.eclipse.rdf4j.common.iteration.LookAheadIteration<BindingSet, QueryEvaluationException>
org.eclipse.rdf4j.repository.sparql.federation.JoinExecutorBase<BindingSet>
org.eclipse.rdf4j.repository.sparql.federation.RepositoryFederatedService.FallbackServiceIteration
- All Implemented Interfaces:
AutoCloseable, CloseableIteration<BindingSet, QueryEvaluationException>, Iteration<BindingSet, QueryEvaluationException>
- Enclosing class:
RepositoryFederatedService
private class RepositoryFederatedService.FallbackServiceIteration
extends JoinExecutorBase<BindingSet>
Helper iteration to evaluate a block of
BindingSets using the simple
RepositoryFederatedService.select(Service, Set, BindingSet, String) routine.-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final List<BindingSet> private final Stringprivate final ServiceFields inherited from class JoinExecutorBase
bindings, closed, finished, leftIter, NEXT_JOIN_ID, rightArg, rightIter, rightQueue -
Constructor Summary
ConstructorsConstructorDescriptionFallbackServiceIteration(Service service, List<BindingSet> allBindings, String baseUri) -
Method Summary
Modifier and TypeMethodDescriptionprotected voidImplementations must implement this method to handle bindings.Methods inherited from class JoinExecutorBase
addResult, done, getNextElement, handleClose, isFinished, run, tossMethods inherited from class LookAheadIteration
hasNext, next, removeMethods inherited from class AbstractCloseableIteration
close, isClosedMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface CloseableIteration
stream
-
Field Details
-
service
-
allBindings
-
baseUri
-
-
Constructor Details
-
FallbackServiceIteration
-
-
Method Details
-
handleBindings
Description copied from class:JoinExecutorBaseImplementations must implement this method to handle bindings. Use the following as a templatewhile (!closed invalid input: '&'invalid input: '&' 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:
handleBindingsin classJoinExecutorBase<BindingSet>- Throws:
Exception
-