Exemple #1
0
 /// <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, params CTX[] ctx)
 {
     byte[] bytes = CDT.PackRangeOperation(MapOperation.REMOVE_BY_KEY_INTERVAL, (int)returnType, keyBegin, keyEnd, ctx);
     return(new Operation(Operation.Type.MAP_MODIFY, binName, Value.Get(bytes)));
 }
Exemple #2
0
 /// <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, params CTX[] ctx)
 {
     byte[] bytes = CDT.PackRangeOperation(MapOperation.GET_BY_VALUE_INTERVAL, (int)returnType, valueBegin, valueEnd, ctx);
     return(new Operation(Operation.Type.MAP_READ, binName, Value.Get(bytes)));
 }
Exemple #3
0
 /// <summary>
 /// Create list remove operation.
 /// Server removes list 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, ListReturnType returnType, params CTX[] ctx)
 {
     byte[] bytes = CDT.PackRangeOperation(ListOperation.REMOVE_BY_VALUE_INTERVAL, (int)returnType, valueBegin, valueEnd, ctx);
     return(new Operation(Operation.Type.CDT_MODIFY, binName, Value.Get(bytes)));
 }