net.sf.sparql.benchmarking.operations.query.nvp
Class FixedNvpQueryOperation

java.lang.Object
  extended by net.sf.sparql.benchmarking.operations.AbstractOperation
      extended by net.sf.sparql.benchmarking.operations.query.AbstractQueryOperation
          extended by net.sf.sparql.benchmarking.operations.query.AbstractRemoteQueryOperation
              extended by net.sf.sparql.benchmarking.operations.query.FixedQueryOperation
                  extended by net.sf.sparql.benchmarking.operations.query.nvp.FixedNvpQueryOperation
All Implemented Interfaces:
Operation, QueryOperation

public class FixedNvpQueryOperation
extends FixedQueryOperation

An operation that runs a fixed query with custom NVPs added to the request

Author:
rvesse

Constructor Summary
FixedNvpQueryOperation(String name, String queryString, Map<String,List<String>> nvps)
          Creates a new fixed NVP 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
 String getType()
          Gets a descriptive type string for the operation e.g.
 
Methods inherited from class net.sf.sparql.benchmarking.operations.query.FixedQueryOperation
getQuery, getQueryString
 
Methods inherited from class net.sf.sparql.benchmarking.operations.query.AbstractRemoteQueryOperation
canRun
 
Methods inherited from class net.sf.sparql.benchmarking.operations.query.AbstractQueryOperation
createErrorInformation, getContentString, toString
 
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, wait, wait, wait
 
Methods inherited from interface net.sf.sparql.benchmarking.operations.Operation
getId, getName, getStats, setId
 

Constructor Detail

FixedNvpQueryOperation

public FixedNvpQueryOperation(String name,
                              String queryString,
                              Map<String,List<String>> nvps)
Creates a new fixed NVP query operation

Parameters:
name - Name
queryString - Query string
nvps - Name value pairs
Method Detail

getType

public String getType()
Description copied from interface: Operation
Gets a descriptive type string for the operation e.g. SPARQL Query

Specified by:
getType in interface Operation
Overrides:
getType in class FixedQueryOperation
Returns:
Type 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
Overrides:
createCallable in class AbstractRemoteQueryOperation
Parameters:
runner - Runner
options - Options
Returns:
Callable


Copyright © 2014. All Rights Reserved.