public class WBWIRocksIterator extends AbstractRocksIterator<WriteBatchWithIndex>
| Modifier and Type | Class and Description |
|---|---|
static class |
WBWIRocksIterator.WriteEntry
Represents an entry returned by
entry()
It is worth noting that a WriteEntry with
the type WBWIRocksIterator.WriteType.DELETE
or WBWIRocksIterator.WriteType.LOG
will not have a value. |
static class |
WBWIRocksIterator.WriteType
Enumeration of the Write operation
that created the record in the Write Batch
|
nativeHandle_owningHandle_| Modifier | Constructor and Description |
|---|---|
protected |
WBWIRocksIterator(WriteBatchWithIndex wbwi,
long nativeHandle) |
| Modifier and Type | Method and Description |
|---|---|
void |
close()
Frees the underlying C++ object
|
protected void |
disposeInternal(long handle) |
WBWIRocksIterator.WriteEntry |
entry()
Get the current entry
|
disposeInternal, isValid, next, prev, refresh, refresh, seek, seek, seekForPrev, seekForPrev, seekToFirst, seekToLast, statusgetNativeHandledisOwnNativeHandle, isOwningHandleprotected WBWIRocksIterator(WriteBatchWithIndex wbwi, long nativeHandle)
public WBWIRocksIterator.WriteEntry 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
protected final void disposeInternal(long handle)
disposeInternal in class RocksObjectpublic void close()
AbstractNativeReferenceIt 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.
close in interface java.lang.AutoCloseableclose in class AbstractImmutableNativeReference