public class TarantoolTupleSpace extends TarantoolSpace<TarantoolTuple,TarantoolResult<TarantoolTuple>>
TarantoolSpace
implementation for working with default tuplesConstructor 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, upsert
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
delete, insert, insertMany, replace, replaceMany, select, update, update, upsert
public 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)
TarantoolSpace
TupleOperations
instance from the given tuple of type T
makeOperationsFromTuple
in class TarantoolSpace<TarantoolTuple,TarantoolResult<TarantoolTuple>>
tuple
- tuple of the specified typeTupleOperations
instanceprotected MessagePackValueMapper arrayTupleResultMapper()
TarantoolSpace
arrayTupleResultMapper
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)
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.