Package org.rocksdb
Class WBWIRocksIterator
- All Implemented Interfaces:
AutoCloseable,RocksIteratorInterface
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classRepresents an entry returned byentry()It is worth noting that a WriteEntry with the typeWBWIRocksIterator.WriteType.DELETEorWBWIRocksIterator.WriteType.LOGwill not have a value.static enumEnumeration of the Write operation that created the record in the Write Batch -
Field Summary
Fields inherited from class org.rocksdb.RocksObject
nativeHandle_Fields inherited from class org.rocksdb.AbstractImmutableNativeReference
owningHandle_ -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedWBWIRocksIterator(WriteBatchWithIndex wbwi, long nativeHandle) -
Method Summary
Modifier and TypeMethodDescriptionvoidclose()Frees the underlying C++ objectprotected final voiddisposeInternal(long handle) entry()Get the current entryMethods inherited from class org.rocksdb.AbstractRocksIterator
disposeInternal, isValid, next, prev, refresh, refresh, seek, seek, seekForPrev, seekForPrev, seekToFirst, seekToLast, statusMethods inherited from class org.rocksdb.RocksObject
getNativeHandleMethods inherited from class org.rocksdb.AbstractImmutableNativeReference
disOwnNativeHandle, isOwningHandle
-
Constructor Details
-
WBWIRocksIterator
-
-
Method Details
-
entry
Get the current entryThe 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:
disposeInternalin classRocksObject
-
close
public void close()Description copied from class:AbstractNativeReferenceFrees the underlying C++ objectIt is strong recommended that the developer calls this after they have finished using the object.
Note, that once an instance of
AbstractNativeReferencehas been closed, calling any of its functions will lead to undefined behavior.- Specified by:
closein interfaceAutoCloseable- Overrides:
closein classAbstractImmutableNativeReference
-