Class ArrayBindingBasedQueryEvaluationContext
- java.lang.Object
-
- org.eclipse.rdf4j.query.algebra.evaluation.impl.ArrayBindingBasedQueryEvaluationContext
-
- All Implemented Interfaces:
QueryEvaluationContext
public final class ArrayBindingBasedQueryEvaluationContext extends Object implements QueryEvaluationContext
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.eclipse.rdf4j.query.algebra.evaluation.impl.QueryEvaluationContext
QueryEvaluationContext.Minimal
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description BiConsumer<Value,MutableBindingSet>
addBinding(String variableName)
ArrayBindingSet
createBindingSet()
ArrayBindingSet
createBindingSet(BindingSet bindings)
static String[]
findAllVariablesUsedInQuery(QueryRoot node)
Function<BindingSet,Binding>
getBinding(String variableName)
Dataset
getDataset()
Literal
getNow()
Function<BindingSet,Value>
getValue(String variableName)
Predicate<BindingSet>
hasBinding(String variableName)
BiConsumer<Value,MutableBindingSet>
setBinding(String variableName)
-
-
-
Method Detail
-
getNow
public Literal getNow()
- Specified by:
getNow
in interfaceQueryEvaluationContext
- Returns:
- the shared now;
-
getDataset
public Dataset getDataset()
- Specified by:
getDataset
in interfaceQueryEvaluationContext
- Returns:
- The dataset that this query is operation on.
-
createBindingSet
public ArrayBindingSet createBindingSet()
- Specified by:
createBindingSet
in interfaceQueryEvaluationContext
-
hasBinding
public Predicate<BindingSet> hasBinding(String variableName)
- Specified by:
hasBinding
in interfaceQueryEvaluationContext
-
getBinding
public Function<BindingSet,Binding> getBinding(String variableName)
- Specified by:
getBinding
in interfaceQueryEvaluationContext
-
getValue
public Function<BindingSet,Value> getValue(String variableName)
- Specified by:
getValue
in interfaceQueryEvaluationContext
-
setBinding
public BiConsumer<Value,MutableBindingSet> setBinding(String variableName)
- Specified by:
setBinding
in interfaceQueryEvaluationContext
-
addBinding
public BiConsumer<Value,MutableBindingSet> addBinding(String variableName)
- Specified by:
addBinding
in interfaceQueryEvaluationContext
-
createBindingSet
public ArrayBindingSet createBindingSet(BindingSet bindings)
- Specified by:
createBindingSet
in interfaceQueryEvaluationContext
-
-