public class ProxyTarantoolTupleSpace extends ProxyTarantoolSpace<TarantoolTuple,TarantoolResult<TarantoolTuple>>
ProxyTarantoolSpace
implementation for working with default tuplesConstructor and Description |
---|
ProxyTarantoolTupleSpace(TarantoolClientConfig config,
TarantoolCallOperations client,
ProxyOperationsMappingConfig mappingConfig,
TarantoolSpaceMetadata spaceMetadata,
TarantoolMetadataOperations metadataOperations)
Basic constructor
|
Modifier and Type | Method and Description |
---|---|
TarantoolCursor<TarantoolTuple> |
cursor(Conditions conditions)
Same as
TarantoolSpaceOperations.cursor(Conditions, int)
but uses the default batch size. |
TarantoolCursor<TarantoolTuple> |
cursor(Conditions conditions,
int batchSize)
Cursor is an iterator-like object that is able to scroll through
results of a query.
|
protected TupleOperations |
makeOperationsFromTuple(TarantoolTuple tuple)
Create a
TupleOperations instance from the given tuple of type T |
protected CallResultMapper<TarantoolResult<TarantoolTuple>,SingleValueCallResult<TarantoolResult<TarantoolTuple>>> |
rowsMetadataTupleResultMapper()
MessagePack value mapper configured with an ArrayValue to tuple converter corresponding to the selected
tuple type
|
String |
toString() |
delete, delete, getMetadata, insert, insert, insertMany, insertMany, replace, replace, replaceMany, replaceMany, select, select, truncate, update, update, update, update, upsert, upsert
public ProxyTarantoolTupleSpace(TarantoolClientConfig config, TarantoolCallOperations client, ProxyOperationsMappingConfig mappingConfig, TarantoolSpaceMetadata spaceMetadata, TarantoolMetadataOperations metadataOperations)
config
- Tarantool client configclient
- configured Tarantool clientmappingConfig
- proxy operation mapping configspaceMetadata
- current space metadatametadataOperations
- metadata operationsprotected TupleOperations makeOperationsFromTuple(TarantoolTuple tuple)
ProxyTarantoolSpace
TupleOperations
instance from the given tuple of type T
makeOperationsFromTuple
in class ProxyTarantoolSpace<TarantoolTuple,TarantoolResult<TarantoolTuple>>
tuple
- tuple of the specified typeTupleOperations
instanceprotected CallResultMapper<TarantoolResult<TarantoolTuple>,SingleValueCallResult<TarantoolResult<TarantoolTuple>>> rowsMetadataTupleResultMapper()
ProxyTarantoolSpace
rowsMetadataTupleResultMapper
in class ProxyTarantoolSpace<TarantoolTuple,TarantoolResult<TarantoolTuple>>
ArrayValue
to T
converterpublic String toString()
toString
in class ProxyTarantoolSpace<TarantoolTuple,TarantoolResult<TarantoolTuple>>
public TarantoolCursor<TarantoolTuple> cursor(Conditions conditions, int batchSize)
TarantoolSpaceOperations
Select will fetch tuples matching the specified query. Each request to server will fetch no more than 'batch size' tuples.
conditions
- query with optionsbatchSize
- size of a batch of single client requestpublic TarantoolCursor<TarantoolTuple> cursor(Conditions conditions)
TarantoolSpaceOperations
TarantoolSpaceOperations.cursor(Conditions, int)
but uses the default batch size.conditions
- query with optionsCopyright © 2025 Picodata. All rights reserved.