public static class UpdateHll.Builder extends UpdateDatatype.Builder<UpdateHll.Builder>
| Constructor and Description |
|---|
Builder(Location location,
HllUpdate update)
Construct a Builder for an UpdateHll command.
|
Builder(Namespace namespace,
HllUpdate update)
Constructs a builder for an UpdateHll command with only a Namespace.
|
| Modifier and Type | Method and Description |
|---|---|
UpdateHll |
build()
Construct a new UpdateHll command.
|
protected UpdateHll.Builder |
self() |
UpdateHll.Builder |
withContext(Context unused)
Contexts are not used with the Hyperloglog data type
|
withOption, withReturnDatatype, withTimeoutpublic Builder(Location location, HllUpdate update)
location - the location of the HyperLogLog in Riak.update - the update to apply to the HyperLogLog.public Builder(Namespace namespace, HllUpdate update)
By providing only a Namespace with the update, Riak will create the HyperLogLog, generate the key, and return it in the response.
namespace - the namespace to create the datatype.update - the update to applyUpdateDatatype.Response.getGeneratedKey()public UpdateHll.Builder withContext(Context unused)
withContext in class UpdateDatatype.Builder<UpdateHll.Builder>unused - Unused parameterpublic UpdateHll build()
build in class UpdateDatatype.Builder<UpdateHll.Builder>protected UpdateHll.Builder self()
self in class UpdateDatatype.Builder<UpdateHll.Builder>Copyright © 2016. All rights reserved.