Class TarantoolSelectRequest.Builder
- java.lang.Object
-
- io.tarantool.driver.protocol.requests.TarantoolSelectRequest.Builder
-
- Enclosing class:
- TarantoolSelectRequest
public static class TarantoolSelectRequest.Builder extends Object
Tarantool select request builder
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description TarantoolSelectRequestbuild(MessagePackObjectMapper mapper)Build aTarantoolSelectRequestinstanceTarantoolSelectRequest.BuilderwithIndexId(int indexId)Specify tarantool index ID for operationTarantoolSelectRequest.BuilderwithIteratorType(TarantoolIteratorType iteratorType)Specify iterator typeTarantoolSelectRequest.BuilderwithKeyValues(List<?> keyValues)Specify key values to be matched against the index keyTarantoolSelectRequest.BuilderwithLimit(long limit)Specify the maximum number of tuples returned by the request.TarantoolSelectRequest.BuilderwithOffset(long offset)Specify the offset of the first tuple returned by the requestTarantoolSelectRequest.BuilderwithSpaceId(int spaceId)Specify tarantool space ID for operation
-
-
-
Method Detail
-
withSpaceId
public TarantoolSelectRequest.Builder withSpaceId(int spaceId)
Specify tarantool space ID for operation- Parameters:
spaceId- tarantool space ID- Returns:
- builder
-
withIndexId
public TarantoolSelectRequest.Builder withIndexId(int indexId)
Specify tarantool index ID for operation- Parameters:
indexId- tarantool index ID- Returns:
- builder
-
withLimit
public TarantoolSelectRequest.Builder withLimit(long limit)
Specify the maximum number of tuples returned by the request.- Parameters:
limit- number- Returns:
- builder
-
withOffset
public TarantoolSelectRequest.Builder withOffset(long offset)
Specify the offset of the first tuple returned by the request- Parameters:
offset- number- Returns:
- builder
-
withIteratorType
public TarantoolSelectRequest.Builder withIteratorType(TarantoolIteratorType iteratorType)
Specify iterator type- Parameters:
iteratorType- iterator type- Returns:
- builder
-
withKeyValues
public TarantoolSelectRequest.Builder withKeyValues(List<?> keyValues)
Specify key values to be matched against the index key- Parameters:
keyValues- key value- Returns:
- builder
-
build
public TarantoolSelectRequest build(MessagePackObjectMapper mapper) throws TarantoolProtocolException
Build aTarantoolSelectRequestinstance- Parameters:
mapper- configuredMessagePackObjectMapperinstance- Returns:
- instance of select request
- Throws:
TarantoolProtocolException- if some required params is missing
-
-