Package org.apache.jena.sparql.exec
Interface QueryExecBuilder
-
- All Superinterfaces:
QueryExecMod
- All Known Implementing Classes:
QueryExecDatasetBuilder
,QueryExecHTTPBuilder
public interface QueryExecBuilder extends QueryExecMod
The common elements of aQueryExec
builder.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default boolean
ask()
Build and execute as an ASK query.QueryExec
build()
Build theQueryExec
.default Graph
construct()
Build and execute as a CONSTRUCT query.QueryExecBuilder
context(Context context)
Set the context.default Graph
describe()
Build and execute as a CONSTRUCT query.QueryExecBuilder
query(java.lang.String queryString)
Set the query.QueryExecBuilder
query(java.lang.String queryString, Syntax syntax)
Set the query.QueryExecBuilder
query(Query query)
Set the query.default RowSet
select()
Build and execute as a SELECT query.QueryExecBuilder
set(Symbol symbol, boolean value)
Set a context entry.QueryExecBuilder
set(Symbol symbol, java.lang.Object value)
Set a context entry.default QueryExecBuilder
substitution(java.lang.String var, Node value)
Provide a (var name, Node) for substitution in the query when QueryExec is built.QueryExecBuilder
substitution(Var var, Node value)
Provide a (Var, Node) for substitution in the query when QueryExec is built.QueryExecBuilder
substitution(Binding binding)
Provide a set of (Var, Node) for substitution in the query when QueryExec is built.QueryExecBuilder
timeout(long value, java.util.concurrent.TimeUnit timeUnit)
Set the overall query execution timeout.-
Methods inherited from interface org.apache.jena.sparql.exec.QueryExecMod
getContext, initialTimeout, overallTimeout, timeout
-
-
-
-
Method Detail
-
query
QueryExecBuilder query(Query query)
Set the query.
-
query
QueryExecBuilder query(java.lang.String queryString)
Set the query.
-
query
QueryExecBuilder query(java.lang.String queryString, Syntax syntax)
Set the query.
-
set
QueryExecBuilder set(Symbol symbol, java.lang.Object value)
Set a context entry.
-
set
QueryExecBuilder set(Symbol symbol, boolean value)
Set a context entry.
-
context
QueryExecBuilder context(Context context)
Set the context. If not set, defaults to the system context (ARQ.getContext()
).
-
substitution
QueryExecBuilder substitution(Binding binding)
Provide a set of (Var, Node) for substitution in the query when QueryExec is built.
-
substitution
QueryExecBuilder substitution(Var var, Node value)
Provide a (Var, Node) for substitution in the query when QueryExec is built.
-
substitution
default QueryExecBuilder substitution(java.lang.String var, Node value)
Provide a (var name, Node) for substitution in the query when QueryExec is built.
-
timeout
QueryExecBuilder timeout(long value, java.util.concurrent.TimeUnit timeUnit)
Set the overall query execution timeout.- Specified by:
timeout
in interfaceQueryExecMod
-
build
QueryExec build()
- Specified by:
build
in interfaceQueryExecMod
-
select
default RowSet select()
Build and execute as a SELECT query.
-
construct
default Graph construct()
Build and execute as a CONSTRUCT query.
-
describe
default Graph describe()
Build and execute as a CONSTRUCT query.
-
ask
default boolean ask()
Build and execute as an ASK query.
-
-