de.zib.scalaris.executor
Class ScalarisListAppendRemoveOp1<T>

java.lang.Object
  extended by de.zib.scalaris.executor.ScalarisChangeListOp1
      extended by de.zib.scalaris.executor.ScalarisListAppendRemoveOp1<T>
Type Parameters:
T - the type of objects in the list
All Implemented Interfaces:
ScalarisOp

public class ScalarisListAppendRemoveOp1<T>
extends ScalarisChangeListOp1

Implements a list append and remove operation using the read and write operations of Scalaris. Supports an (optional) list counter key which is updated accordingly. First adds a set of elements, then removes another set of elements.

Since:
3.18
Version:
3.18
Author:
Nico Kruber, kruber@zib.de

Constructor Summary
ScalarisListAppendRemoveOp1(String key, List<T> toAdd, List<T> toRemove, String countKey)
          Creates a new append+remove operation.
 
Method Summary
 String toString()
           
 
Methods inherited from class de.zib.scalaris.executor.ScalarisChangeListOp1
doPhase, workPhases
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ScalarisListAppendRemoveOp1

public ScalarisListAppendRemoveOp1(String key,
                                   List<T> toAdd,
                                   List<T> toRemove,
                                   String countKey)
Creates a new append+remove operation.

Parameters:
key - the key to append/remove the values to/from
toAdd - the values to add
toRemove - the values to remove
countKey - the key for the counter of the entries in the list (may be null)
Method Detail

toString

public String toString()
Specified by:
toString in interface ScalarisOp
Overrides:
toString in class Object