public class HllUpdate extends Object implements DatatypeUpdate
When building an UpdateHll
this class is used to encapsulate the update to be performed on a
Riak HyperLogLog datatype.
Constructor and Description |
---|
HllUpdate()
Constructs an empty HllUpdate.
|
Modifier and Type | Method and Description |
---|---|
HllUpdate |
add(String element)
Add the provided element to the HyperLogLog in Riak.
|
HllUpdate |
addAll(Collection<String> elements)
Add the provided elements to the HyperLogLog in Riak.
|
HllUpdate |
addAllBinary(Collection<BinaryValue> elements)
Add the provided elements to the HyperLogLog in Riak.
|
HllUpdate |
addBinary(BinaryValue element)
Add the provided element to the HyperLogLog in Riak.
|
Set<BinaryValue> |
getElementAdds()
Get the set of element additions contained in this update.
|
HllOp |
getOp()
Returns the core update.
|
String |
toString() |
public HllUpdate addBinary(BinaryValue element)
element
- the element to be added.public HllUpdate add(String element)
element
- the element to be added.public HllUpdate addAllBinary(Collection<BinaryValue> elements)
elements
- the elements to be added.public HllUpdate addAll(Collection<String> elements)
elements
- the elements to be added.public Set<BinaryValue> getElementAdds()
public HllOp getOp()
getOp
in interface DatatypeUpdate
Copyright © 2016. All rights reserved.