public class SetUpdate extends Object implements DatatypeUpdate
When building an UpdateSet
or UpdateMap
command
this class is used to encapsulate the update to be performed on a
Riak set datatype.
Constructor and Description |
---|
SetUpdate()
Constructs an empty SetUpdate.
|
Modifier and Type | Method and Description |
---|---|
SetUpdate |
add(BinaryValue value)
Add the provided value to the set in Riak.
|
SetUpdate |
add(String value)
Add the provided value to the set in Riak.
|
Set<BinaryValue> |
getAdds()
Get the set of additions contained in this update.
|
SetOp |
getOp()
Returns the core update.
|
Set<BinaryValue> |
getRemoves()
Get the set of removes contained in this update.
|
SetUpdate |
remove(BinaryValue value)
Remove the provided value from the set in Riak.
|
SetUpdate |
remove(String value)
Remove the provided value from the set in Riak.
|
String |
toString() |
public SetUpdate add(BinaryValue value)
value
- the value to be added.public SetUpdate add(String value)
value
- the value to be added.public SetUpdate remove(BinaryValue value)
value
- the value to be removed.public SetUpdate remove(String value)
value
- the value to be removed.public Set<BinaryValue> getAdds()
public Set<BinaryValue> getRemoves()
public SetOp getOp()
getOp
in interface DatatypeUpdate
Copyright © 2016. All rights reserved.