net.sf.sparql.benchmarking.operations.query.callables
Class AbstractInMemoryQueryCallable<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.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

Constructor Summary
AbstractInMemoryQueryCallable(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  Dataset getDataset(T options)
          Gets the dataset to run the query against
 
Methods inherited from class net.sf.sparql.benchmarking.operations.query.callables.AbstractQueryCallable
call, countResults, countResults, countResults, customizeRequest, 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

AbstractInMemoryQueryCallable

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

Parameters:
runner - Runner
options - Options
Method Detail

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.