public class RocksIteratorWrapper extends Object implements org.rocksdb.RocksIteratorInterface, Closeable
RocksIterator to check the iterator status for all the methods mentioned
to require this check in the wiki documentation: seek, next, seekToFirst, seekToLast, seekForPrev, and prev.
This is required because the iterator may pass the blocks or files it had difficulties in reading (because
of IO error, data corruption or other issues) and continue with the next available keys. The status flag may not be
OK, even if the iterator is valid. More information can be found
here.| 构造器和说明 |
|---|
RocksIteratorWrapper(org.rocksdb.RocksIterator iterator) |
| 限定符和类型 | 方法和说明 |
|---|---|
void |
close() |
boolean |
isValid() |
byte[] |
key() |
void |
next() |
void |
prev() |
void |
seek(byte[] target) |
void |
seekForPrev(byte[] target) |
void |
seekToFirst() |
void |
seekToLast() |
void |
status() |
byte[] |
value() |
public RocksIteratorWrapper(@Nonnull org.rocksdb.RocksIterator iterator)
public boolean isValid()
isValid 在接口中 org.rocksdb.RocksIteratorInterfacepublic void seekToFirst()
seekToFirst 在接口中 org.rocksdb.RocksIteratorInterfacepublic void seekToLast()
seekToLast 在接口中 org.rocksdb.RocksIteratorInterfacepublic void seek(byte[] target)
seek 在接口中 org.rocksdb.RocksIteratorInterfacepublic void seekForPrev(byte[] target)
seekForPrev 在接口中 org.rocksdb.RocksIteratorInterfacepublic void next()
next 在接口中 org.rocksdb.RocksIteratorInterfacepublic void prev()
prev 在接口中 org.rocksdb.RocksIteratorInterfacepublic void status()
status 在接口中 org.rocksdb.RocksIteratorInterfacepublic byte[] key()
public byte[] value()
public void close()
close 在接口中 Closeableclose 在接口中 AutoCloseableCopyright © 2014–2019 The Apache Software Foundation. All rights reserved.