public class RegisterUpdate extends Object implements DatatypeUpdate
When building an UpdateMap
command
this class is used to encapsulate the update to be performed on a
Riak register datatype contained in the map. It is used in conjunction with the
MapUpdate
.
Constructor and Description |
---|
RegisterUpdate(BinaryValue value)
Construct a RegisterUpdate with the provided BinaryValue.
|
RegisterUpdate(byte[] value)
Construct a RegisterUpdate with the provided bytes.
|
RegisterUpdate(String value)
Construct a RegisterUpdate with the provided String.
|
Modifier and Type | Method and Description |
---|---|
BinaryValue |
get()
Get the register contained in this update.
|
RegisterOp |
getOp()
Returns the core update.
|
String |
toString() |
public RegisterUpdate(byte[] value)
value
- the bytes representing the register.public RegisterUpdate(BinaryValue value)
value
- the BinaryValue representing the register.public RegisterUpdate(String value)
Note the String is converted to bytes using the default Charset.
value
- the String representing the register.public BinaryValue get()
public RegisterOp getOp()
getOp
in interface DatatypeUpdate
Copyright © 2015. All rights reserved.