net.sf.sparql.benchmarking.operations.gsp
Class GSPPostCallable<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.GSPPostCallable<T>
Type Parameters:
T - Options type
All Implemented Interfaces:
Callable<OperationRun>, OperationCallable<T>

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

A callable which runs the Graph Store Protocol POST operation

Author:
rvesse

Constructor Summary
GSPPostCallable(Runner<T> runner, T options, Model data)
          Creates a new callable that operates on the default graph
GSPPostCallable(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

GSPPostCallable

public GSPPostCallable(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

GSPPostCallable

public GSPPostCallable(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.