Package com.basho.riak.client.api.commands.datatypes

Examples of com.basho.riak.client.api.commands.datatypes.UpdateMap


    // Now create an update for the user's entry
    MapUpdate userEntryUpdate = new MapUpdate()
      .update(username, userMapUpdate);

    UpdateMap update = new UpdateMap.Builder(carts, userEntryUpdate)
      .withOption(Option.RETURN_BODY, true)
      .build();
    UpdateMap.Response updateResponse = client.execute(update);

        Location loc = new Location(carts, updateResponse.getGeneratedKey());
View Full Code Here


        MapUpdate innerMapUpdate = new MapUpdate().update("flag", new FlagUpdate(true));
        CounterUpdate innerCounterUpdate = new CounterUpdate(1);
       
    // Insert a Map and Counter into logins and observe both counter and map returned
    UpdateMap conflictedUpdateCmd =
      new UpdateMap.Builder(carts, new MapUpdate().update(numLogins, innerMapUpdate).update(numLogins, innerCounterUpdate))
        .withOption(Option.RETURN_BODY, true)
        .build();

    UpdateMap.Response conflictedResponse =
View Full Code Here

    public void testStore() throws ExecutionException, InterruptedException
    {

        MapUpdate update = new MapUpdate();

        UpdateMap store = new UpdateMap.Builder(key, update)
          .withContext(context)
            .withOption(Option.DW, new Quorum(1))
            .withOption(Option.PW, new Quorum(1))
            .withOption(Option.N_VAL, 1)
            .withOption(Option.RETURN_BODY, true)
View Full Code Here

TOP

Related Classes of com.basho.riak.client.api.commands.datatypes.UpdateMap

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.