net.sf.sparql.benchmarking.operations.parameterized
Class AbstractParameterizedQueryOperation

java.lang.Object
  extended by net.sf.sparql.benchmarking.operations.AbstractOperation
      extended by net.sf.sparql.benchmarking.operations.parameterized.AbstractParameterizedSparqlOperation
          extended by net.sf.sparql.benchmarking.operations.parameterized.AbstractParameterizedQueryOperation
All Implemented Interfaces:
Operation, QueryOperation
Direct Known Subclasses:
InMemoryParameterizedQueryOperation, ParameterizedQueryOperation

public abstract class AbstractParameterizedQueryOperation
extends AbstractParameterizedSparqlOperation
implements QueryOperation

Abstract parameterized SPARQL query operation

Author:
rvesse

Constructor Summary
AbstractParameterizedQueryOperation(String sparqlString, Collection<Binding> parameters, String name)
          Creates a new parameterized query operation
 
Method Summary
<T extends Options>
OperationCallable<T>
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
 
Methods inherited from class net.sf.sparql.benchmarking.operations.parameterized.AbstractParameterizedSparqlOperation
getContentString, getParameterizedSparql
 
Methods inherited from class net.sf.sparql.benchmarking.operations.AbstractOperation
getId, getName, getStats, setId
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface net.sf.sparql.benchmarking.operations.Operation
canRun, getContentString, getId, getName, getStats, getType, setId
 

Constructor Detail

AbstractParameterizedQueryOperation

public AbstractParameterizedQueryOperation(String sparqlString,
                                           Collection<Binding> parameters,
                                           String name)
Creates a new parameterized query operation

Parameters:
sparqlString - SPARQL String
parameters - Parameters
name - Name
Method Detail

createErrorInformation

public QueryRun createErrorInformation(String message,
                                       int category,
                                       long runtime)
Description copied from interface: Operation
Creates run information for an error

Specified by:
createErrorInformation in interface Operation
Parameters:
message - Error message
category - Error category
runtime - Runtime
Returns:
Error information

getQuery

public Query getQuery()
Description copied from interface: QueryOperation
Gets the actual Query

Specified by:
getQuery in interface QueryOperation
Returns:
Query

getQueryString

public String getQueryString()
Description copied from interface: QueryOperation
Gets the Query String used to create this Query

Specified by:
getQueryString in interface QueryOperation
Returns:
Query as a string

createCallable

public <T extends Options> OperationCallable<T> createCallable(Runner<T> runner,
                                                               T options)
Description copied from interface: Operation
Creates the callable for running the operation in a background thread

Specified by:
createCallable in interface Operation
Parameters:
runner - Runner
options - Options
Returns:
Callable


Copyright © 2014. All Rights Reserved.