Package io.tarantool.driver.protocol
Class TarantoolIndexQuery
- java.lang.Object
-
- io.tarantool.driver.protocol.TarantoolIndexQuery
-
public class TarantoolIndexQuery extends Object
Represents index-related query options including index ID or name, matching keys and iterator type.
-
-
Field Summary
Fields Modifier and Type Field Description static intPRIMARY
-
Constructor Summary
Constructors Constructor Description TarantoolIndexQuery()Basic constructor.TarantoolIndexQuery(int indexId)Creates a query for index with specified ID.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object o)intgetIndexId()Get index IDTarantoolIteratorTypegetIteratorType()Get iterator typeList<?>getKeyValues()Get list of key valuesinthashCode()StringtoString()TarantoolIndexQuerywithIteratorType(TarantoolIteratorType iteratorType)Set iterator typeTarantoolIndexQuerywithKeyValues(List<?> keyValues)Set list of key values to be matched with index key parts
-
-
-
Field Detail
-
PRIMARY
public static final int PRIMARY
- See Also:
- Constant Field Values
-
-
Method Detail
-
getIndexId
public int getIndexId()
Get index ID- Returns:
- a number
-
getIteratorType
public TarantoolIteratorType getIteratorType()
Get iterator type- Returns:
TarantoolIteratorType.ITER_EQby default
-
withIteratorType
public TarantoolIndexQuery withIteratorType(TarantoolIteratorType iteratorType)
Set iterator type- Parameters:
iteratorType- new iterator type- Returns:
- this query instance with new iterator type
-
getKeyValues
public List<?> getKeyValues()
Get list of key values- Returns:
- list of key values to be matched with index key parts
-
withKeyValues
public TarantoolIndexQuery withKeyValues(List<?> keyValues)
Set list of key values to be matched with index key parts- Parameters:
keyValues- new list of key values- Returns:
- this query instance with new list of key values
-
-