net.sf.sparql.benchmarking.operations.query
Class AbstractQueryOperation
java.lang.Object
net.sf.sparql.benchmarking.operations.AbstractOperation
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
AbstractQueryOperation
public AbstractQueryOperation(String name)
- Creates a new operation
- Parameters:
name
- Query name
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 messagecategory
- Error categoryruntime
- 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.