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

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


      buffer.rewind();
    }

    // Create an update for the user's values
    MapUpdate userMapUpdate = new MapUpdate()
      .update(numLogins, new CounterUpdate(1))                // counter
      .update(lastLoginTime, new RegisterUpdate(now))     // register
      .update(loggedIn, new FlagUpdate(true))                   // flag
      .update(shoppingCart, favorites);              // asSet

    // Now create an update for the user's entry
View Full Code Here


  {

    resetAndEmptyBucket(carts);

        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)
View Full Code Here

            buffer.rewind();
        }

        // Create an update for the user's values
        MapUpdate userMapUpdate = new MapUpdate()
            .update(numLogins, new CounterUpdate(1))                // counter
            .update(lastLoginTime, new RegisterUpdate(now))     // register
            .update(loggedIn, new FlagUpdate(true))                   // flag
            .update(shoppingCart, favorites);              // asSet

        // Now create an update for the user's entry
View Full Code Here

TOP

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

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.