net.sf.sparql.benchmarking.operations.query
Class AbstractInMemoryQueryOperation

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.AbstractInMemoryQueryOperation
All Implemented Interfaces:
Operation, QueryOperation
Direct Known Subclasses:
InMemoryFixedQueryOperation

public abstract class AbstractInMemoryQueryOperation
extends AbstractQueryOperation

Abstract implementation of a query operation that runs against a local in-memory dataset

Author:
rvesse

Constructor Summary
AbstractInMemoryQueryOperation(String name)
          Creates a new operation
 
Method Summary
<T extends Options>
boolean
canRun(Runner<T> runner, T options)
          Report whether the operation can run based on the available options
<T extends Options>
OperationCallable<T>
createCallable(Runner<T> runner, T options)
          Creates the callable for running the operation in a background thread
 
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.query.QueryOperation
getQuery, getQueryString
 
Methods inherited from interface net.sf.sparql.benchmarking.operations.Operation
getId, getName, getStats, getType, setId
 

Constructor Detail

AbstractInMemoryQueryOperation

public AbstractInMemoryQueryOperation(String name)
Creates a new operation

Parameters:
name - Query name
Method Detail

canRun

public <T extends Options> boolean canRun(Runner<T> runner,
                                          T options)
Description copied from interface: Operation
Report whether the operation can run based on the available options

Parameters:
runner - Runner
options - Options
Returns:
True if the operation can run, false otherwise

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

Parameters:
runner - Runner
options - Options
Returns:
Callable


Copyright © 2014. All Rights Reserved.