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

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.DatasetSizeOperation
All Implemented Interfaces:
Operation, QueryOperation

public class DatasetSizeOperation
extends AbstractQueryOperation

An operation which calculates the size of the dataset

Author:
rvesse

Constructor Summary
DatasetSizeOperation()
          Creates an operation with the default name
DatasetSizeOperation(String name)
          Creates an operation with the user supplied name
 
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
 Query getQuery()
          Gets the actual Query
 String getQueryString()
          Gets the Query String used to create this Query
 String getType()
          Gets a descriptive type string for the operation e.g.
 
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

DatasetSizeOperation

public DatasetSizeOperation()
Creates an operation with the default name


DatasetSizeOperation

public DatasetSizeOperation(String name)
Creates an operation with the user supplied name

Parameters:
name - Name
Method Detail

getType

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

Returns:
Type string

getQuery

public Query getQuery()
Description copied from interface: QueryOperation
Gets the actual Query

Returns:
Query

getQueryString

public String getQueryString()
Description copied from interface: QueryOperation
Gets the Query String used to create this Query

Returns:
Query as a 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

Parameters:
runner - Runner
options - Options
Returns:
Callable

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


Copyright © 2014. All Rights Reserved.