Package org.rocksdb

Class SstFileReader

  • All Implemented Interfaces:
    java.lang.AutoCloseable

    public class SstFileReader
    extends RocksObject
    • Constructor Detail

      • SstFileReader

        public SstFileReader​(Options options)
    • Method Detail

      • newIterator

        public SstFileReaderIterator newIterator​(ReadOptions readOptions)
        Returns an iterator that will iterate on all keys in the default column family including both keys in the DB and uncommitted keys in this transaction. Setting ReadOptions.setSnapshot(Snapshot) will affect what is read from the DB but will NOT change which keys are read from this transaction (the keys in this transaction do not yet belong to any snapshot and will be fetched regardless). Caller is responsible for deleting the returned Iterator.
        Parameters:
        readOptions - Read options.
        Returns:
        instance of iterator object.
      • open

        public void open​(java.lang.String filePath)
                  throws RocksDBException
        Prepare SstFileReader to read a file.
        Parameters:
        filePath - the location of file
        Throws:
        RocksDBException - thrown if error happens in underlying native library.