lib/commands/crdt/updatemap.js
function MapOperation() {
    this.counters = { increment: [], remove : []};
    this.maps = { modify: [], remove: []};
    this.sets = { adds: [], removes: [], remove: []};
    this.registers = { set: [], remove: [] };
    this.flags = { set: [], remove: [] };
}
function MapOperation() {
    this.counters = { increment: [], remove : []};
    this.maps = { modify: [], remove: []};
    this.sets = { adds: [], removes: [], remove: []};
    this.registers = { set: [], remove: [] };
    this.flags = { set: [], remove: [] };
}
function MapOperation ( ) { this . counters = { increment : [ ] , remove : [ ] } ; this . maps = { modify : [ ] , remove : [ ] } ; this . sets = { adds : [ ] , removes : [ ] , remove : [ ] } ; this . registers = { set : [ ] , remove : [ ] } ; this . flags = { set : [ ] , remove : [ ] } ; }
Class that encapsulates modifications to a Map in Riak.

Rather than manually constructing this yourself, a fluent API is provided.

var mapOp = new UpdateMap.MapOperation();
mapOp.incrementCounter('counter_1', 50)
.addToSet('set_1', 'set_value_1')
.setRegister('register_1', new Buffer('register_value_1'))
.setFlag('flag_1', true)
.map('inner_map')
.incrementCounter('counter_1', 50)
.addToSet('set_2', 'set_value_2');

@class UpdateMap.MapOperation
@constructor
Class that encapsulates modifications to a Map in Riak .