public class UpdateMap extends UpdateDatatype<RiakMap,UpdateMap.Response,Location>
To update or create a map in Riak you construct a MapUpdate and use
this command to send it to Riak.
Namespace ns = new Namespace("my_type", "my_bucket");
Location loc = new Location(ns, "my_key");
CounterUpdate cUpdate = new CounterUpdate(10L);
MapUpdate update = new MapUpdate().update("my_key", cUpdate);
UpdateMap um = new UpdateMap.Builder(loc, update).withReturnDatatype(true).build();
UpdateMap.Response resp = client.execute(um);
RiakMap map = resp.getDatatype();
| Modifier and Type | Class and Description |
|---|---|
static class |
UpdateMap.Builder
Builder used to construct an UpdateMap command.
|
static class |
UpdateMap.Response |
UpdateDatatype.Option<T>key, namespace| Modifier and Type | Method and Description |
|---|---|
protected RiakFuture<UpdateMap.Response,Location> |
executeAsync(RiakCluster cluster) |
buildCoreOperationexecute, executeprotected RiakFuture<UpdateMap.Response,Location> executeAsync(RiakCluster cluster)
executeAsync in class RiakCommand<UpdateMap.Response,Location>Copyright © 2016. All rights reserved.