net.sf.sparql.benchmarking.operations.query.callables
Class AbstractRemoteQueryCallable<T extends Options>

java.lang.Object
  extended by net.sf.sparql.benchmarking.operations.AbstractOperationCallable<T>
      extended by net.sf.sparql.benchmarking.operations.query.callables.AbstractQueryCallable<T>
          extended by net.sf.sparql.benchmarking.operations.query.callables.AbstractRemoteQueryCallable<T>
Type Parameters:
T - Options type
All Implemented Interfaces:
Callable<OperationRun>, OperationCallable<T>
Direct Known Subclasses:
RemoteQueryCallable

public abstract class AbstractRemoteQueryCallable<T extends Options>
extends AbstractQueryCallable<T>

Abstract callable for operations that run queries against a remote service via HTTP

Author:
rvesse

Constructor Summary
AbstractRemoteQueryCallable(Runner<T> runner, T options)
          Creates a new callable
 
Method Summary
protected  QueryExecution createQueryExecution(Query query)
          Creates the query execution to use for the query
protected  void customizeRequest(QueryExecution qe)
          Provides derived implementations the option to customize the query execution before actually executing the query e.g.
 
Methods inherited from class net.sf.sparql.benchmarking.operations.query.callables.AbstractQueryCallable
call, countResults, countResults, countResults, getQuery
 
Methods inherited from class net.sf.sparql.benchmarking.operations.AbstractOperationCallable
cancel, getOptions, getRunner, isCancelled
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AbstractRemoteQueryCallable

public AbstractRemoteQueryCallable(Runner<T> runner,
                                   T options)
Creates a new callable

Parameters:
runner - Runner
options - Options
Method Detail

createQueryExecution

protected QueryExecution createQueryExecution(Query query)
Description copied from class: AbstractQueryCallable
Creates the query execution to use for the query

Specified by:
createQueryExecution in class AbstractQueryCallable<T extends Options>
Parameters:
query - Query
Returns:
Query execution

customizeRequest

protected void customizeRequest(QueryExecution qe)
Description copied from class: AbstractQueryCallable
Provides derived implementations the option to customize the query execution before actually executing the query e.g. to add custom parameters

The default implementation does nothing.

Overrides:
customizeRequest in class AbstractQueryCallable<T extends Options>
Parameters:
qe - Query Execution


Copyright © 2014. All Rights Reserved.