Class QueryContext
java.lang.Object
org.eclipse.rdf4j.query.algebra.evaluation.QueryContext
A
QueryContext provides a means to pass arbitrary local state to a
Function or
TupleFunction. The implementation of
org.eclipse.rdf4j.sail.SailConnection#evaluate() is responsible for initialising a QueryContext and making it
available during evaluation via QueryContextIteration. A
QueryContext is commonly used to provide a QueryPreparer for the current SailConnection. This allows, for
example, Functions to be written that conveniently express more complex queries.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidbegin()voidend()<T> TgetAttribute(String name) static QueryContextvoidsetAttribute(String name, Object value)
-
Constructor Details
-
QueryContext
public QueryContext() -
QueryContext
-
-
Method Details
-
getQueryContext
-
begin
public void begin() -
getQueryPreparer
-
setAttribute
-
getAttribute
-
end
public void end()
-