Class CheckAndSetRequest

java.lang.Object
com.palantir.atlasdb.keyvalue.api.CheckAndSetRequest

@Immutable public abstract class CheckAndSetRequest extends Object
A request to be supplied to KeyValueService.checkAndSet. Use newCell(TableReference, Cell, byte[]) if the Cell is not yet stored, and singleCell(TableReference, Cell, byte[], byte[]) otherwise. table() the TableReference where the Cell is stored. cell() the Cell to update. oldValue() the existing value, or empty() if no value exists. newValue() the desired new value.
  • Constructor Details

    • CheckAndSetRequest

      public CheckAndSetRequest()
  • Method Details