Package org.rocksdb
Class WBWIRocksIterator
- java.lang.Object
-
- All Implemented Interfaces:
java.lang.AutoCloseable,RocksIteratorInterface
public class WBWIRocksIterator extends AbstractRocksIterator<WriteBatchWithIndex>
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classWBWIRocksIterator.WriteEntryRepresents an entry returned byentry()It is worth noting that a WriteEntry with the typeWBWIRocksIterator.WriteType.DELETEorWBWIRocksIterator.WriteType.LOGwill not have a value.static classWBWIRocksIterator.WriteTypeEnumeration 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
Constructors Modifier Constructor Description protectedWBWIRocksIterator(WriteBatchWithIndex wbwi, long nativeHandle)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclose()Frees the underlying C++ objectprotected voiddisposeInternal(long handle)WBWIRocksIterator.WriteEntryentry()Get the current entry The WriteEntry is only valid until the iterator is repositioned.-
Methods inherited from class org.rocksdb.AbstractRocksIterator
disposeInternal, isValid, next, prev, refresh, seek, seek, seekForPrev, seekForPrev, seekToFirst, seekToLast, status
-
Methods inherited from class org.rocksdb.RocksObject
getNativeHandle
-
Methods inherited from class org.rocksdb.AbstractImmutableNativeReference
disOwnNativeHandle, isOwningHandle
-
Methods inherited from class org.rocksdb.AbstractNativeReference
dispose, finalize
-
-
-
-
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
-
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 disposed, calling any of its functions will lead to undefined behavior.- Specified by:
closein interfacejava.lang.AutoCloseable- Overrides:
closein classAbstractImmutableNativeReference
-
-