Class TarantoolCursorBase<T extends Packable,​R extends Collection<T>>

    • Constructor Detail

      • TarantoolCursorBase

        public TarantoolCursorBase()
    • Method Detail

      • fetchNextTuples

        protected abstract void fetchNextTuples()
      • advanceIterator

        protected abstract boolean advanceIterator()
      • getCurrentValue

        protected abstract T getCurrentValue()
      • calcLimit

        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.
        Parameters:
        conditionLimit - initial limit (specified in condition)
        batchSize - size of a batch
        spaceOffset - current count of fetched elements
        Returns:
        effective limit for the current batch