net.sf.sparql.benchmarking.operations.query.callables
Class AbstractInMemoryQueryCallable<T extends Options>
java.lang.Object
net.sf.sparql.benchmarking.operations.AbstractOperationCallable<T>
net.sf.sparql.benchmarking.operations.query.callables.AbstractQueryCallable<T>
net.sf.sparql.benchmarking.operations.query.callables.AbstractInMemoryQueryCallable<T>
- Type Parameters:
T
- Options type
- All Implemented Interfaces:
- Callable<OperationRun>, OperationCallable<T>
- Direct Known Subclasses:
- InMemoryQueryCallable
public abstract class AbstractInMemoryQueryCallable<T extends Options>
- extends AbstractQueryCallable<T>
Abstract callable for operations that run queries against a local in-memory
dataset
- Author:
- rvesse
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
AbstractInMemoryQueryCallable
public AbstractInMemoryQueryCallable(Runner<T> runner,
T options)
- Creates a new callable
- Parameters:
runner
- Runneroptions
- Options
getDataset
protected Dataset getDataset(T options)
- Gets the dataset to run the query against
By default all in-memory based operations simply expect a non-null
dataset to be available via the Options.getDataset()
method
- Returns:
- Dataset
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
Copyright © 2014. All Rights Reserved.