public class UpdateHll extends UpdateDatatype<RiakHll,UpdateHll.Response>
To update or create a HyperLogLog in Riak you construct a HllUpdate
and use
this command to send it to Riak.
Namespace ns = new Namespace("my_type", "my_bucket");
Location loc = new Location(ns, "my_key");
HllUpdate update = new HllUpdate().add("some_new_value");
UpdateHll us = new UpdateHll.Builder(loc, update).withReturnDatatype(true).build();
UpdateHll.Response resp = client.execute(us);
RiakHll = resp.getDatatype();
Modifier and Type | Class and Description |
---|---|
static class |
UpdateHll.Builder
Builder used to construct an UpdateHll command.
|
static class |
UpdateHll.Response
A response from an UpdateHll command.
|
UpdateDatatype.Option<T>
GenericRiakCommand.GenericRiakCommandWithSameInfo<R,I,CoreR>
key, namespace
Modifier and Type | Method and Description |
---|---|
protected UpdateHll.Response |
convertResponse(FutureOperation<DtUpdateOperation.Response,?,Location> request,
DtUpdateOperation.Response coreResponse) |
buildCoreOperation
convertInfo
executeAsync
execute, execute
protected UpdateHll.Response convertResponse(FutureOperation<DtUpdateOperation.Response,?,Location> request, DtUpdateOperation.Response coreResponse)
convertResponse
in class GenericRiakCommand<UpdateHll.Response,Location,DtUpdateOperation.Response,Location>
Copyright © 2016. All rights reserved.