public class TarantoolTupleSpace extends TarantoolSpace<TarantoolTuple,TarantoolResult<TarantoolTuple>>
TarantoolSpace implementation for working with default tuples| Constructor and Description |
|---|
TarantoolTupleSpace(TarantoolCallOperations client,
TarantoolClientConfig config,
TarantoolConnectionManager connectionManager,
TarantoolMetadataOperations metadataOperations,
TarantoolSpaceMetadata spaceMetadata)
Basic constructor
|
| Modifier and Type | Method and Description |
|---|---|
protected MessagePackValueMapper |
arrayTupleResultMapper()
MessagePack value mapper configured with an ArrayValue to tuple converter corresponding to the selected
tuple type
|
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 |
String |
toString() |
delete, getMetadata, insert, insertMany, replace, replaceMany, select, truncate, update, update, upsertclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitdelete, insert, insertMany, replace, replaceMany, select, update, update, upsertpublic TarantoolTupleSpace(TarantoolCallOperations client, TarantoolClientConfig config, TarantoolConnectionManager connectionManager, TarantoolMetadataOperations metadataOperations, TarantoolSpaceMetadata spaceMetadata)
client - client that provides connection to tarantool serverconfig - client configconnectionManager - Tarantool server connection managerspaceMetadata - metadata for this spacemetadataOperations - metadata operations implementationprotected TupleOperations makeOperationsFromTuple(TarantoolTuple tuple)
TarantoolSpaceTupleOperations instance from the given tuple of type TmakeOperationsFromTuple in class TarantoolSpace<TarantoolTuple,TarantoolResult<TarantoolTuple>>tuple - tuple of the specified typeTupleOperations instanceprotected MessagePackValueMapper arrayTupleResultMapper()
TarantoolSpacearrayTupleResultMapper in class TarantoolSpace<TarantoolTuple,TarantoolResult<TarantoolTuple>>ArrayValue to T converterpublic String toString()
toString in class TarantoolSpace<TarantoolTuple,TarantoolResult<TarantoolTuple>>public TarantoolCursor<TarantoolTuple> cursor(Conditions conditions, int batchSize)
TarantoolSpaceOperationsSelect 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)
TarantoolSpaceOperationsTarantoolSpaceOperations.cursor(Conditions, int)
but uses the default batch size.conditions - query with optionsCopyright © 2025 Picodata. All rights reserved.