public class WBWIRocksIterator extends AbstractRocksIterator<WriteBatchWithIndex>
| 限定符和类型 | 类和说明 |
|---|---|
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_| 限定符 | 构造器和说明 |
|---|---|
protected |
WBWIRocksIterator(WriteBatchWithIndex wbwi,
long nativeHandle) |
| 限定符和类型 | 方法和说明 |
|---|---|
void |
close()
Frees the underlying C++ object
It is strong recommended that the developer calls this after they
have finished using the object.
|
protected void |
disposeInternal(long handle) |
WBWIRocksIterator.WriteEntry |
entry()
Get the current entry
The WriteEntry is only valid
until the iterator is repositioned.
|
disposeInternal, isValid, next, prev, 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 在类中 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 在接口中 java.lang.AutoCloseableclose 在类中 AbstractImmutableNativeReference