Package org.rocksdb

Class WBWIRocksIterator

All Implemented Interfaces:
AutoCloseable, RocksIteratorInterface

public class WBWIRocksIterator extends AbstractRocksIterator<WriteBatchWithIndex>
  • Constructor Details

    • WBWIRocksIterator

      protected WBWIRocksIterator(WriteBatchWithIndex wbwi, long nativeHandle)
  • Method Details

    • entry

      Get the current entry

      The WriteEntry is only valid until the iterator is repositioned. If you want to keep the WriteEntry across iterator movements, you must make a copy of its data!

      Note - This method is not thread-safe with respect to the WriteEntry as it performs a non-atomic update across the fields of the WriteEntry

      Returns:
      The WriteEntry of the current entry
    • disposeInternal

      protected final void disposeInternal(long handle)
      Specified by:
      disposeInternal in class RocksObject
    • close

      public void close()
      Description copied from class: AbstractNativeReference
      Frees the underlying C++ object

      It is strong recommended that the developer calls this after they have finished using the object.

      Note, that once an instance of AbstractNativeReference has been closed, calling any of its functions will lead to undefined behavior.

      Specified by:
      close in interface AutoCloseable
      Overrides:
      close in class AbstractImmutableNativeReference