Class AscendingRangeIterator

  • All Implemented Interfaces:
    AutoCloseable, DbIterator

    public class AscendingRangeIterator
    extends Object
    implements DbIterator
    wrapper around a rocksdb iterator that only supports next() and is restricted to a range.
    • Constructor Detail

      • AscendingRangeIterator

        public AscendingRangeIterator​(org.rocksdb.RocksIterator it,
                                      byte[] rangeStart,
                                      byte[] rangeEnd)
        Constructs an iterator restricted to a range.

        The condition for the rangeEnd is such that if rangeEnd is a a prefix for the db key, the key is considered as part of the range.

        This is also valid for rangeStart but that is normal lexicographic order.

      • AscendingRangeIterator

        public AscendingRangeIterator​(org.rocksdb.RocksIterator it,
                                      DbRange range)