net.sf.sparql.benchmarking.operations.parameterized
Class AbstractParameterizedUpdateOperation

java.lang.Object
  extended by net.sf.sparql.benchmarking.operations.AbstractOperation
      extended by net.sf.sparql.benchmarking.operations.parameterized.AbstractParameterizedSparqlOperation
          extended by net.sf.sparql.benchmarking.operations.parameterized.AbstractParameterizedUpdateOperation
All Implemented Interfaces:
Operation, UpdateOperation
Direct Known Subclasses:
InMemoryParameterizedUpdateOperation, ParameterizedUpdateOperation

public abstract class AbstractParameterizedUpdateOperation
extends AbstractParameterizedSparqlOperation
implements UpdateOperation

Abstract parameterized SPARQL update operation

Author:
rvesse

Constructor Summary
AbstractParameterizedUpdateOperation(String sparqlString, Collection<Binding> parameters, String name)
          Creates a new parameterized update operation
 
Method Summary
<T extends Options>
OperationCallable<T>
createCallable(Runner<T> runner, T options)
          Creates the callable for running the operation in a background thread
 UpdateRun createErrorInformation(String message, int category, long runtime)
          Creates run information for an error
 UpdateRequest getUpdate()
          Gets the actual update
 String getUpdateString()
          Gets the update string used to create this update
 
Methods inherited from class net.sf.sparql.benchmarking.operations.parameterized.AbstractParameterizedSparqlOperation
getContentString, getParameterizedSparql
 
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, toString, wait, wait, wait
 
Methods inherited from interface net.sf.sparql.benchmarking.operations.Operation
canRun, getContentString, getId, getName, getStats, getType, setId
 

Constructor Detail

AbstractParameterizedUpdateOperation

public AbstractParameterizedUpdateOperation(String sparqlString,
                                            Collection<Binding> parameters,
                                            String name)
Creates a new parameterized update operation

Parameters:
sparqlString - SPARQL String
parameters - Parameters
name - Name
Method Detail

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

Specified by:
createCallable in interface Operation
Parameters:
runner - Runner
options - Options
Returns:
Callable

createErrorInformation

public UpdateRun 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

getUpdate

public UpdateRequest getUpdate()
Description copied from interface: UpdateOperation
Gets the actual update

Specified by:
getUpdate in interface UpdateOperation
Returns:
Update

getUpdateString

public String getUpdateString()
Description copied from interface: UpdateOperation
Gets the update string used to create this update

Specified by:
getUpdateString in interface UpdateOperation
Returns:
Raw update string


Copyright © 2014. All Rights Reserved.