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 TarantoolSelectRequest
build(MessagePackObjectMapper mapper)
Build aTarantoolSelectRequest
instanceTarantoolSelectRequest.Builder
withIndexId(int indexId)
Specify tarantool index ID for operationTarantoolSelectRequest.Builder
withIteratorType(TarantoolIteratorType iteratorType)
Specify iterator typeTarantoolSelectRequest.Builder
withKeyValues(List<?> keyValues)
Specify key values to be matched against the index keyTarantoolSelectRequest.Builder
withLimit(long limit)
Specify the maximum number of tuples returned by the request.TarantoolSelectRequest.Builder
withOffset(long offset)
Specify the offset of the first tuple returned by the requestTarantoolSelectRequest.Builder
withSpaceId(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 aTarantoolSelectRequest
instance- Parameters:
mapper
- configuredMessagePackObjectMapper
instance- Returns:
- instance of select request
- Throws:
TarantoolProtocolException
- if some required params is missing
-
-