Class TripleSourceBase.ResultHolder<T>
- java.lang.Object
-
- org.eclipse.rdf4j.federated.evaluation.TripleSourceBase.ResultHolder<T>
-
- Type Parameters:
T
-
- All Implemented Interfaces:
Supplier<CloseableIteration<T,QueryEvaluationException>>
- Enclosing class:
- TripleSourceBase
protected static class TripleSourceBase.ResultHolder<T> extends Object implements Supplier<CloseableIteration<T,QueryEvaluationException>>
Holder for a result iteration to be used withTripleSourceBase.withConnection(ConnectionOperation)
. Note that the result holder should also be set with temporary results to properly allow error handling.- Author:
- Andreas Schwarte
-
-
Field Summary
Fields Modifier and Type Field Description protected CloseableIteration<T,QueryEvaluationException>
result
-
Constructor Summary
Constructors Modifier Constructor Description protected
ResultHolder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description CloseableIteration<T,QueryEvaluationException>
get()
void
set(CloseableIteration<T,QueryEvaluationException> result)
-
-
-
Field Detail
-
result
protected CloseableIteration<T,QueryEvaluationException> result
-
-
Method Detail
-
set
public void set(CloseableIteration<T,QueryEvaluationException> result)
-
get
public CloseableIteration<T,QueryEvaluationException> get()
-
-