public class QueryContext extends Object
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 and Description |
---|
QueryContext() |
QueryContext(QueryPreparer qp) |
Modifier and Type | Method and Description |
---|---|
void |
begin() |
void |
end() |
<T> T |
getAttribute(String name) |
static QueryContext |
getQueryContext() |
QueryPreparer |
getQueryPreparer() |
void |
setAttribute(String name,
Object value) |
public QueryContext()
public QueryContext(QueryPreparer qp)
public static QueryContext getQueryContext()
public void begin()
public QueryPreparer getQueryPreparer()
public <T> T getAttribute(String name)
public void end()
Copyright © 2015-2019 Eclipse Foundation. All Rights Reserved.