de.zib.scalaris.executor
Class ScalarisListAppendRemoveOp1<T>
java.lang.Object
de.zib.scalaris.executor.ScalarisChangeListOp1
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
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/fromtoAdd
- the values to addtoRemove
- the values to removecountKey
- the key for the counter of the entries in the list
(may be null)
toString
public String toString()
- Specified by:
toString
in interface ScalarisOp
- Overrides:
toString
in class Object