net.sf.sparql.benchmarking.operations.gsp
Class GSPPutCallable<T extends Options>

java.lang.Object
  extended by net.sf.sparql.benchmarking.operations.AbstractOperationCallable<T>
      extended by net.sf.sparql.benchmarking.operations.gsp.AbstractGSPCallable<T>
          extended by net.sf.sparql.benchmarking.operations.gsp.GSPPutCallable<T>
Type Parameters:
T - Options type
All Implemented Interfaces:
Callable<OperationRun>, OperationCallable<T>

public class GSPPutCallable<T extends Options>
extends AbstractGSPCallable<T>

A callable which runs the Graph Store Protocol PUT operation

Author:
rvesse

Constructor Summary
GSPPutCallable(Runner<T> runner, T options, Model data)
          Creates a new callable that operates on the default graph
GSPPutCallable(Runner<T> runner, T options, Model data, String uri)
          Creates a new callable that operates on a specific graph
 
Method Summary
protected  long doOperation(DatasetAccessor accessor)
          Does the operation using the accessor and returns the number of results
 
Methods inherited from class net.sf.sparql.benchmarking.operations.gsp.AbstractGSPCallable
call, getAccessor, getGraphUri, isDefaultGraphUri
 
Methods inherited from class net.sf.sparql.benchmarking.operations.AbstractOperationCallable
cancel, getOptions, getRunner, isCancelled
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GSPPutCallable

public GSPPutCallable(Runner<T> runner,
                      T options,
                      Model data)
Creates a new callable that operates on the default graph

Parameters:
runner - Runner
options - Options
data - Data to be added

GSPPutCallable

public GSPPutCallable(Runner<T> runner,
                      T options,
                      Model data,
                      String uri)
Creates a new callable that operates on a specific graph

Parameters:
runner - Runner
options - Options
data - Data to be added
uri - Graph URI
Method Detail

doOperation

protected long doOperation(DatasetAccessor accessor)
Description copied from class: AbstractGSPCallable
Does the operation using the accessor and returns the number of results

Specified by:
doOperation in class AbstractGSPCallable<T extends Options>
Parameters:
accessor - Accessor
Returns:
Number of results


Copyright © 2014. All Rights Reserved.