/// <summary>
 /// Create map get by value range operation.
 /// Server selects map items identified by value range (valueBegin inclusive, valueEnd exclusive)
 /// If valueBegin is null, the range is less than valueEnd.
 /// If valueEnd is null, the range is greater than equal to valueBegin.
 /// <para>
 /// Server returns selected data specified by returnType.
 /// </para>
 /// </summary>
 public static Operation GetByValueRange(string binName, Value valueBegin, Value valueEnd, MapReturnType returnType)
 {
     return(MapBase.CreateRangeOperation(MapBase.GET_BY_VALUE_INTERVAL, Operation.Type.MAP_READ, binName, valueBegin, valueEnd, returnType));
 }
 /// <summary>
 /// Create map get by key range operation.
 /// Server selects map items identified by key range (keyBegin inclusive, keyEnd exclusive).
 /// If keyBegin is null, the range is less than keyEnd.
 /// If keyEnd is null, the range is greater than equal to keyBegin.
 /// <para>
 /// Server returns selected data specified by returnType.
 /// </para>
 /// </summary>
 public static Operation GetByKeyRange(string binName, Value keyBegin, Value keyEnd, MapReturnType returnType)
 {
     return(MapBase.CreateRangeOperation(MapBase.GET_BY_KEY_INTERVAL, Operation.Type.MAP_READ, binName, keyBegin, keyEnd, returnType));
 }
 /// <summary>
 /// Create map get by value operation.
 /// Server selects map items identified by value and returns selected data specified by returnType.
 /// </summary>
 public static Operation GetByValue(string binName, Value value, MapReturnType returnType)
 {
     return(MapBase.CreateOperation(MapBase.GET_BY_VALUE, Operation.Type.MAP_READ, binName, value, returnType));
 }
 /// <summary>
 /// Create map clear operation.
 /// Server removes all items in map.  Server returns null.
 /// </summary>
 public static Operation Clear(string binName)
 {
     return(MapBase.CreateOperation(MapBase.CLEAR, Operation.Type.MAP_MODIFY, binName));
 }
 /// <summary>
 /// Create map get by key operation.
 /// Server selects map item identified by key and returns selected data specified by returnType.
 /// </summary>
 public static Operation GetByKey(string binName, Value key, MapReturnType returnType)
 {
     return(MapBase.CreateOperation(MapBase.GET_BY_KEY, Operation.Type.MAP_READ, binName, key, returnType));
 }
 /// <summary>
 /// Create map get by rank operation.
 /// Server selects map item identified by rank and returns selected data specified by returnType.
 /// </summary>
 public static Operation GetByRank(string binName, int rank, MapReturnType returnType)
 {
     return(MapBase.CreateOperation(MapBase.GET_BY_RANK, Operation.Type.MAP_READ, binName, rank, returnType));
 }
 /// <summary>
 /// Create set map policy operation.
 /// Server sets map policy attributes.  Server returns null.
 /// <para>
 /// The required map policy attributes can be changed after the map is created.
 /// </para>
 /// </summary>
 public static Operation SetMapPolicy(MapPolicy policy, string binName)
 {
     return(MapBase.SetMapPolicy(binName, policy.attributes));
 }
 /// <summary>
 /// Create map remove operation.
 /// Server removes map items identified by value range (valueBegin inclusive, valueEnd exclusive).
 /// If valueBegin is null, the range is less than valueEnd.
 /// If valueEnd is null, the range is greater than equal to valueBegin.
 /// <para>
 /// Server returns removed data specified by returnType.
 /// </para>
 /// </summary>
 public static Operation RemoveByValueRange(string binName, Value valueBegin, Value valueEnd, MapReturnType returnType)
 {
     return(MapBase.CreateRangeOperation(MapBase.REMOVE_BY_VALUE_INTERVAL, Operation.Type.MAP_MODIFY, binName, valueBegin, valueEnd, returnType));
 }
 /// <summary>
 /// Create map remove operation.
 /// Server removes map item identified by index and returns removed data specified by returnType.
 /// </summary>
 public static Operation RemoveByIndex(string binName, int index, MapReturnType returnType)
 {
     return(MapBase.CreateOperation(MapBase.REMOVE_BY_INDEX, Operation.Type.MAP_MODIFY, binName, index, returnType));
 }
 /// <summary>
 /// Create map remove operation.
 /// Server removes map items identified by value and returns removed data specified by returnType.
 /// </summary>
 public static Operation RemoveByValue(string binName, Value value, MapReturnType returnType)
 {
     return(MapBase.CreateOperation(MapBase.REMOVE_BY_VALUE, Operation.Type.MAP_MODIFY, binName, value, returnType));
 }
 /// <summary>
 /// Create map remove operation.
 /// Server removes map items identified by values and returns removed data specified by returnType.
 /// </summary>
 public static Operation RemoveByValueList(string binName, IList values, MapReturnType returnType)
 {
     return(MapBase.CreateOperation(MapBase.REMOVE_BY_VALUE_LIST, Operation.Type.MAP_MODIFY, binName, values, returnType));
 }
 /// <summary>
 /// Create map remove operation.
 /// Server removes map items identified by key range (keyBegin inclusive, keyEnd exclusive).
 /// If keyBegin is null, the range is less than keyEnd.
 /// If keyEnd is null, the range is greater than equal to keyBegin.
 /// <para>
 /// Server returns removed data specified by returnType.
 /// </para>
 /// </summary>
 public static Operation RemoveByKeyRange(string binName, Value keyBegin, Value keyEnd, MapReturnType returnType)
 {
     return(MapBase.CreateRangeOperation(MapBase.REMOVE_BY_KEY_INTERVAL, Operation.Type.MAP_MODIFY, binName, keyBegin, keyEnd, returnType));
 }
 /// <summary>
 /// Create map remove operation.
 /// Server removes map items identified by keys and returns removed data specified by returnType.
 /// </summary>
 public static Operation RemoveByKeyList(string binName, IList keys, MapReturnType returnType)
 {
     return(MapBase.CreateOperation(MapBase.REMOVE_BY_KEY_LIST, Operation.Type.MAP_MODIFY, binName, keys, returnType));
 }
 /// <summary>
 /// Create map remove operation.
 /// Server removes map item identified by key and returns removed data specified by returnType.
 /// </summary>
 public static Operation RemoveByKey(string binName, Value key, MapReturnType returnType)
 {
     return(MapBase.CreateOperation(MapBase.REMOVE_BY_KEY, Operation.Type.MAP_MODIFY, binName, key, returnType));
 }
 /// <summary>
 /// Create map get by index operation.
 /// Server selects map item identified by index and returns selected data specified by returnType.
 /// </summary>
 public static Operation GetByIndex(string binName, int index, MapReturnType returnType)
 {
     return(MapBase.CreateOperation(MapBase.GET_BY_INDEX, Operation.Type.MAP_READ, binName, index, returnType));
 }
 /// <summary>
 /// Create map remove operation.
 /// Server removes "count" map items starting at specified index and returns removed data specified by returnType.
 /// </summary>
 public static Operation RemoveByIndexRange(string binName, int index, int count, MapReturnType returnType)
 {
     return(MapBase.CreateOperation(MapBase.REMOVE_BY_INDEX_RANGE, Operation.Type.MAP_MODIFY, binName, index, count, returnType));
 }
 /// <summary>
 /// Create map get by index range operation.
 /// Server selects "count" map items starting at specified index and returns selected data specified by returnType.
 /// </summary>
 public static Operation GetByIndexRange(string binName, int index, int count, MapReturnType returnType)
 {
     return(MapBase.CreateOperation(MapBase.GET_BY_INDEX_RANGE, Operation.Type.MAP_READ, binName, index, count, returnType));
 }
 /// <summary>
 /// Create map remove operation.
 /// Server removes "count" map items starting at specified rank and returns removed data specified by returnType.
 /// </summary>
 public static Operation RemoveByRankRange(string binName, int rank, int count, MapReturnType returnType)
 {
     return(MapBase.CreateOperation(MapBase.REMOVE_BY_RANK_RANGE, Operation.Type.MAP_MODIFY, binName, rank, count, returnType));
 }
 /// <summary>
 /// Create map get by rank range operation.
 /// Server selects "count" map items starting at specified rank and returns selected data specified by returnType.
 /// </summary>
 public static Operation GetByRankRange(string binName, int rank, int count, MapReturnType returnType)
 {
     return(MapBase.CreateOperation(MapBase.GET_BY_RANK_RANGE, Operation.Type.MAP_READ, binName, rank, count, returnType));
 }
 /// <summary>
 /// Create map size operation.
 /// Server returns size of map.
 /// </summary>
 public static Operation Size(string binName)
 {
     return(MapBase.CreateOperation(MapBase.SIZE, Operation.Type.MAP_READ, binName));
 }
 /// <summary>
 /// Create map put operation.
 /// Server writes key/value item to map bin and returns map size.
 /// <para>
 /// The required map policy dictates the type of map to create when it does not exist.
 /// The map policy also specifies the mode used when writing items to the map.
 /// See policy <seealso cref="Aerospike.Client.MapPolicy"/> and write mode
 /// <seealso cref="Aerospike.Client.MapWriteMode"/>.
 /// </para>
 /// </summary>
 public static Operation Put(MapPolicy policy, string binName, Value key, Value value)
 {
     return(MapBase.CreatePut(policy.itemCommand, policy.attributes, binName, key, value));
 }
 /// <summary>
 /// Create map decrement operation.
 /// Server decrements values by decr for all items identified by key and returns final result.
 /// Valid only for numbers.
 /// <para>
 /// The required map policy dictates the type of map to create when it does not exist.
 /// The map policy also specifies the mode used when writing items to the map.
 /// See policy <seealso cref="Aerospike.Client.MapPolicy"/> and write mode
 /// <seealso cref="Aerospike.Client.MapWriteMode"/>.
 /// </para>
 /// </summary>
 public static Operation Decrement(MapPolicy policy, string binName, Value key, Value decr)
 {
     return(MapBase.CreateOperation(MapBase.DECREMENT, policy.attributes, binName, key, decr));
 }