public abstract class TarantoolCursorBase<T extends Packable,R extends Collection<T>> extends Object implements TarantoolCursor<T>
Constructor and Description |
---|
TarantoolCursorBase() |
Modifier and Type | Method and Description |
---|---|
protected abstract boolean |
advanceIterator() |
protected static long |
calcLimit(long conditionLimit,
long batchSize,
long spaceOffset)
If batchSize is less than condition limit
we need to recalculate limit for each batch.
|
protected abstract void |
fetchNextTuples() |
T |
get() |
protected abstract T |
getCurrentValue() |
boolean |
next()
Fetch next element.
|
protected abstract void fetchNextTuples()
protected abstract boolean advanceIterator()
protected abstract T getCurrentValue()
protected static long calcLimit(long conditionLimit, long batchSize, long spaceOffset)
conditionLimit
- initial limit (specified in condition)batchSize
- size of a batchspaceOffset
- current count of fetched elementspublic boolean next() throws TarantoolClientException
TarantoolCursor
next
in interface TarantoolCursor<T extends Packable>
TarantoolClientException
- if the request to server failed.public T get() throws TarantoolSpaceOperationException
get
in interface TarantoolCursor<T extends Packable>
TarantoolSpaceOperationException
- when no data is availableCopyright © 2025 Picodata. All rights reserved.