Package org.apache.jena.sparql.engine
Class ExecutionContext
- java.lang.Object
-
- org.apache.jena.sparql.engine.ExecutionContext
-
- All Implemented Interfaces:
FunctionEnv
public class ExecutionContext extends java.lang.Object implements FunctionEnv
-
-
Constructor Summary
Constructors Constructor Description ExecutionContext(DatasetGraph dataset)Setup with defaults of global settingsExecutionContext(DatasetGraph dataset, OpExecutorFactory factory)Setup with defaults of global settings but explicitOpExecutorfactory.ExecutionContext(ExecutionContext other)CloneExecutionContext(ExecutionContext other, Graph activeGraph)Clone and change active graph - shares trackingExecutionContext(Context params, Graph activeGraph, DatasetGraph dataset, OpExecutorFactory factory)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclosedIterator(QueryIterator qIter)GraphgetActiveGraph()Return the active graph (the one matching is against at this point in the query.ContextgetContext()Return the context for this function callDatasetGraphgetDataset()Return the dataset for the queryOpExecutorFactorygetExecutor()java.util.Iterator<QueryIterator>listAllIterators()java.util.Iterator<QueryIterator>listOpenIterators()voidopenIterator(QueryIterator qIter)voidsetExecutor(OpExecutorFactory executor)Setter for the policy for algebra expression evaluation - use with care
-
-
-
Constructor Detail
-
ExecutionContext
public ExecutionContext(ExecutionContext other)
Clone
-
ExecutionContext
public ExecutionContext(ExecutionContext other, Graph activeGraph)
Clone and change active graph - shares tracking
-
ExecutionContext
public ExecutionContext(DatasetGraph dataset)
Setup with defaults of global settings
-
ExecutionContext
public ExecutionContext(DatasetGraph dataset, OpExecutorFactory factory)
Setup with defaults of global settings but explicitOpExecutorfactory.
-
ExecutionContext
public ExecutionContext(Context params, Graph activeGraph, DatasetGraph dataset, OpExecutorFactory factory)
-
-
Method Detail
-
getContext
public Context getContext()
Description copied from interface:FunctionEnvReturn the context for this function call- Specified by:
getContextin interfaceFunctionEnv
-
openIterator
public void openIterator(QueryIterator qIter)
-
closedIterator
public void closedIterator(QueryIterator qIter)
-
listOpenIterators
public java.util.Iterator<QueryIterator> listOpenIterators()
-
listAllIterators
public java.util.Iterator<QueryIterator> listAllIterators()
-
getExecutor
public OpExecutorFactory getExecutor()
-
setExecutor
public void setExecutor(OpExecutorFactory executor)
Setter for the policy for algebra expression evaluation - use with care
-
getDataset
public DatasetGraph getDataset()
Description copied from interface:FunctionEnvReturn the dataset for the query- Specified by:
getDatasetin interfaceFunctionEnv
-
getActiveGraph
public Graph getActiveGraph()
Return the active graph (the one matching is against at this point in the query. May be null if unknown or not applicable - for example, doing quad store access or when sorting- Specified by:
getActiveGraphin interfaceFunctionEnv
-
-