Class Swap

java.lang.Object
io.nosqlbench.virtdata.library.basics.shared.stateful.Swap
All Implemented Interfaces:
Function<Object,Object>

public class Swap extends Object implements Function<Object,Object>
Load a named value from the per-thread state map. The previous input value will be stored in the named value, and the previously stored value will be returned. A default value to return may be provided in case there was no previously stored value under the given name.