Package org.rocksdb

Class WBWIRocksIterator

    • Constructor Detail

      • WBWIRocksIterator

        protected WBWIRocksIterator​(WriteBatchWithIndex wbwi,
                                    long nativeHandle)
    • Method Detail

      • entry

        public WBWIRocksIterator.WriteEntry 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
      • 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 disposed, calling any of its functions will lead to undefined behavior.

        Specified by:
        close in interface java.lang.AutoCloseable
        Overrides:
        close in class AbstractImmutableNativeReference