public abstract class AbstractParameterizedQueryOperation extends AbstractParameterizedSparqlOperation implements QueryOperation
Constructor and Description |
---|
AbstractParameterizedQueryOperation(String sparqlString,
Collection<Binding> parameters,
String name)
Creates a new parameterized query operation
|
Modifier and Type | Method and Description |
---|---|
<T extends Options> |
createCallable(Runner<T> runner,
T options)
Creates the callable for running the operation in a background thread
|
QueryRun |
createErrorInformation(String message,
int category,
long runtime)
Creates run information for an error
|
Query |
getQuery()
Gets the actual Query
|
String |
getQueryString()
Gets the Query String used to create this Query
|
getContentString, getParameterizedSparql
getId, getName, getStats, setId
public AbstractParameterizedQueryOperation(String sparqlString, Collection<Binding> parameters, String name)
sparqlString
- SPARQL Stringparameters
- Parametersname
- Namepublic QueryRun createErrorInformation(String message, int category, long runtime)
Operation
createErrorInformation
in interface Operation
message
- Error messagecategory
- Error categoryruntime
- Runtimepublic Query getQuery()
QueryOperation
getQuery
in interface QueryOperation
public String getQueryString()
QueryOperation
getQueryString
in interface QueryOperation
public <T extends Options> OperationCallable<T> createCallable(Runner<T> runner, T options)
Operation
createCallable
in interface Operation
runner
- Runneroptions
- OptionsCopyright © 2015. All rights reserved.