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

java.lang.Object
  extended by net.sf.sparql.benchmarking.operations.AbstractOperation
      extended by net.sf.sparql.benchmarking.operations.query.AbstractQueryOperation
All Implemented Interfaces:
Operation, QueryOperation
Direct Known Subclasses:
AbstractInMemoryQueryOperation, AbstractRemoteQueryOperation, DatasetSizeOperation

public abstract class AbstractQueryOperation
extends AbstractOperation
implements QueryOperation

Abstract implementation of a query operation

Author:
rvesse

Constructor Summary
AbstractQueryOperation(String name)
          Creates a new operation
 
Method Summary
 QueryRun createErrorInformation(String message, int category, long runtime)
          Creates run information for an error
 String getContentString()
          Gets a string that shows the content of the operation e.g.
 String toString()
          Gets the string representation (i.e.
 
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
canRun, createCallable, getId, getName, getStats, getType, setId
 

Constructor Detail

AbstractQueryOperation

public AbstractQueryOperation(String name)
Creates a new operation

Parameters:
name - Query name
Method Detail

createErrorInformation

public QueryRun createErrorInformation(String message,
                                       int category,
                                       long runtime)
Description copied from interface: Operation
Creates run information for an error

Specified by:
createErrorInformation in interface Operation
Parameters:
message - Error message
category - Error category
runtime - Runtime
Returns:
Error information

getContentString

public String getContentString()
Description copied from interface: Operation
Gets a string that shows the content of the operation e.g. SPARQL Query string, SPARQL Update string etc.

Specified by:
getContentString in interface Operation
Returns:
Content string

toString

public String toString()
Gets the string representation (i.e. the name) of the operation

Overrides:
toString in class Object


Copyright © 2014. All Rights Reserved.