public class ListOperation extends Object
Index/Range examples:
If an index is out of bounds, a parameter error will be returned. If a range is partially out of bounds, the valid part of the range will be returned.
Constructor and Description |
---|
ListOperation() |
Modifier and Type | Method and Description |
---|---|
static Operation |
append(ListPolicy policy,
String binName,
Value value)
Create list append operation with policy.
|
static Operation |
append(String binName,
Value value)
Create default list append operation.
|
static Operation |
appendItems(ListPolicy policy,
String binName,
List<Value> list)
Create list append items operation with policy.
|
static Operation |
appendItems(String binName,
List<Value> list)
Create default list append items operation.
|
static Operation |
clear(String binName)
Create list clear operation.
|
static Operation |
get(String binName,
int index)
Create list get operation.
|
static Operation |
getByIndex(String binName,
int index,
int returnType)
Create list get by index operation.
|
static Operation |
getByIndexRange(String binName,
int index,
int returnType)
Create list get by index range operation.
|
static Operation |
getByIndexRange(String binName,
int index,
int count,
int returnType)
Create list get by index range operation.
|
static Operation |
getByRank(String binName,
int rank,
int returnType)
Create list get by rank operation.
|
static Operation |
getByRankRange(String binName,
int rank,
int returnType)
Create list get by rank range operation.
|
static Operation |
getByRankRange(String binName,
int rank,
int count,
int returnType)
Create list get by rank range operation.
|
static Operation |
getByValue(String binName,
Value value,
int returnType)
Create list get by value operation.
|
static Operation |
getByValueList(String binName,
List<Value> values,
int returnType)
Create list get by value list operation.
|
static Operation |
getByValueRange(String binName,
Value valueBegin,
Value valueEnd,
int returnType)
Create list get by value range operation.
|
static Operation |
getByValueRelativeRankRange(String binName,
Value value,
int rank,
int returnType)
Create list get by value relative to rank range operation.
|
static Operation |
getByValueRelativeRankRange(String binName,
Value value,
int rank,
int count,
int returnType)
Create list get by value relative to rank range operation.
|
static Operation |
getRange(String binName,
int index)
Create list get range operation.
|
static Operation |
getRange(String binName,
int index,
int count)
Create list get range operation.
|
static Operation |
increment(ListPolicy policy,
String binName,
int index)
Create list increment operation with policy.
|
static Operation |
increment(ListPolicy policy,
String binName,
int index,
Value value)
Create list increment operation.
|
static Operation |
increment(String binName,
int index)
Create default list increment operation.
|
static Operation |
increment(String binName,
int index,
Value value)
Create default list increment operation.
|
static Operation |
insert(ListPolicy policy,
String binName,
int index,
Value value)
Create list insert operation with policy.
|
static Operation |
insert(String binName,
int index,
Value value)
Create default list insert operation.
|
static Operation |
insertItems(ListPolicy policy,
String binName,
int index,
List<Value> list)
Create list insert items operation with policy.
|
static Operation |
insertItems(String binName,
int index,
List<Value> list)
Create default list insert items operation.
|
static Operation |
pop(String binName,
int index)
Create list pop operation.
|
static Operation |
popRange(String binName,
int index)
Create list pop range operation.
|
static Operation |
popRange(String binName,
int index,
int count)
Create list pop range operation.
|
static Operation |
remove(String binName,
int index)
Create list remove operation.
|
static Operation |
removeByIndex(String binName,
int index,
int returnType)
Create list remove operation.
|
static Operation |
removeByIndexRange(String binName,
int index,
int returnType)
Create list remove operation.
|
static Operation |
removeByIndexRange(String binName,
int index,
int count,
int returnType)
Create list remove operation.
|
static Operation |
removeByRank(String binName,
int rank,
int returnType)
Create list remove operation.
|
static Operation |
removeByRankRange(String binName,
int rank,
int returnType)
Create list remove operation.
|
static Operation |
removeByRankRange(String binName,
int rank,
int count,
int returnType)
Create list remove operation.
|
static Operation |
removeByValue(String binName,
Value value,
int returnType)
Create list remove operation.
|
static Operation |
removeByValueList(String binName,
List<Value> values,
int returnType)
Create list remove operation.
|
static Operation |
removeByValueRange(String binName,
Value valueBegin,
Value valueEnd,
int returnType)
Create list remove operation.
|
static Operation |
removeByValueRelativeRankRange(String binName,
Value value,
int rank,
int returnType)
Create list remove by value relative to rank range operation.
|
static Operation |
removeByValueRelativeRankRange(String binName,
Value value,
int rank,
int count,
int returnType)
Create list remove by value relative to rank range operation.
|
static Operation |
removeRange(String binName,
int index)
Create list remove range operation.
|
static Operation |
removeRange(String binName,
int index,
int count)
Create list remove range operation.
|
static Operation |
set(ListPolicy policy,
String binName,
int index,
Value value)
Create list set operation with policy.
|
static Operation |
set(String binName,
int index,
Value value)
Create list set operation.
|
static Operation |
setOrder(String binName,
ListOrder order)
Create set list order operation.
|
static Operation |
size(String binName)
Create list size operation.
|
static Operation |
sort(String binName,
int sortFlags)
Create list sort operation.
|
static Operation |
trim(String binName,
int index,
int count)
Create list trim operation.
|
public static Operation setOrder(String binName, ListOrder order)
public static Operation append(String binName, Value value)
public static Operation append(ListPolicy policy, String binName, Value value)
public static Operation appendItems(String binName, List<Value> list)
public static Operation appendItems(ListPolicy policy, String binName, List<Value> list)
public static Operation insert(String binName, int index, Value value)
public static Operation insert(ListPolicy policy, String binName, int index, Value value)
public static Operation insertItems(String binName, int index, List<Value> list)
public static Operation insertItems(ListPolicy policy, String binName, int index, List<Value> list)
public static Operation increment(String binName, int index)
public static Operation increment(ListPolicy policy, String binName, int index)
public static Operation increment(String binName, int index, Value value)
public static Operation increment(ListPolicy policy, String binName, int index, Value value)
public static Operation pop(String binName, int index)
public static Operation popRange(String binName, int index, int count)
public static Operation popRange(String binName, int index)
public static Operation remove(String binName, int index)
public static Operation removeRange(String binName, int index, int count)
public static Operation removeRange(String binName, int index)
public static Operation set(String binName, int index, Value value)
public static Operation set(ListPolicy policy, String binName, int index, Value value)
public static Operation trim(String binName, int index, int count)
public static Operation clear(String binName)
public static Operation sort(String binName, int sortFlags)
binName
- server bin namesortFlags
- sort flags. See ListSortFlags
.public static Operation removeByValue(String binName, Value value, int returnType)
ListReturnType
).public static Operation removeByValueList(String binName, List<Value> values, int returnType)
ListReturnType
).public static Operation removeByValueRange(String binName, Value valueBegin, Value valueEnd, int returnType)
Server returns removed data specified by returnType (See ListReturnType
).
public static Operation removeByValueRelativeRankRange(String binName, Value value, int rank, int returnType)
ListReturnType
).
Examples for ordered list [0,4,5,9,11,15]:
public static Operation removeByValueRelativeRankRange(String binName, Value value, int rank, int count, int returnType)
ListReturnType
).
Examples for ordered list [0,4,5,9,11,15]:
public static Operation removeByIndex(String binName, int index, int returnType)
ListReturnType
).public static Operation removeByIndexRange(String binName, int index, int returnType)
ListReturnType
).public static Operation removeByIndexRange(String binName, int index, int count, int returnType)
ListReturnType
).public static Operation removeByRank(String binName, int rank, int returnType)
ListReturnType
).public static Operation removeByRankRange(String binName, int rank, int returnType)
ListReturnType
).public static Operation removeByRankRange(String binName, int rank, int count, int returnType)
ListReturnType
).public static Operation size(String binName)
public static Operation get(String binName, int index)
public static Operation getRange(String binName, int index, int count)
public static Operation getRange(String binName, int index)
public static Operation getByValue(String binName, Value value, int returnType)
ListReturnType
).public static Operation getByValueRange(String binName, Value valueBegin, Value valueEnd, int returnType)
Server returns selected data specified by returnType (See ListReturnType
).
public static Operation getByValueList(String binName, List<Value> values, int returnType)
ListReturnType
).public static Operation getByValueRelativeRankRange(String binName, Value value, int rank, int returnType)
ListReturnType
).
Examples for ordered list [0,4,5,9,11,15]:
public static Operation getByValueRelativeRankRange(String binName, Value value, int rank, int count, int returnType)
ListReturnType
).
Examples for ordered list [0,4,5,9,11,15]:
public static Operation getByIndex(String binName, int index, int returnType)
ListReturnType
).public static Operation getByIndexRange(String binName, int index, int returnType)
ListReturnType
).public static Operation getByIndexRange(String binName, int index, int count, int returnType)
ListReturnType
).public static Operation getByRank(String binName, int rank, int returnType)
ListReturnType
).public static Operation getByRankRange(String binName, int rank, int returnType)
ListReturnType
).public static Operation getByRankRange(String binName, int rank, int count, int returnType)
ListReturnType
).Copyright ? 2012–2018 Aerospike, Inc. All rights reserved.