Trait ckb_rocksdb::ops::Iterate
source · pub trait Iterate {
// Required method
fn get_raw_iter<'a: 'b, 'b>(
&'a self,
readopts: &ReadOptions
) -> DBRawIterator<'b>;
// Provided methods
fn get_iter<'a: 'b, 'b>(
&'a self,
readopts: &ReadOptions,
mode: IteratorMode<'_>
) -> DBIterator<'b> ⓘ { ... }
fn iterator_opt<'a: 'b, 'b>(
&'a self,
mode: IteratorMode<'_>,
readopts: &ReadOptions
) -> DBIterator<'b> ⓘ { ... }
fn iterator<'a: 'b, 'b>(&'a self, mode: IteratorMode<'_>) -> DBIterator<'b> ⓘ { ... }
fn full_iterator<'a: 'b, 'b>(
&'a self,
mode: IteratorMode<'_>
) -> DBIterator<'b> ⓘ { ... }
fn prefix_iterator<'a: 'b, 'b>(&'a self, prefix: &[u8]) -> DBIterator<'b> ⓘ { ... }
fn raw_iterator<'a: 'b, 'b>(&'a self) -> DBRawIterator<'b> { ... }
}
Required Methods§
fn get_raw_iter<'a: 'b, 'b>( &'a self, readopts: &ReadOptions ) -> DBRawIterator<'b>
Provided Methods§
fn get_iter<'a: 'b, 'b>( &'a self, readopts: &ReadOptions, mode: IteratorMode<'_> ) -> DBIterator<'b> ⓘ
fn iterator_opt<'a: 'b, 'b>( &'a self, mode: IteratorMode<'_>, readopts: &ReadOptions ) -> DBIterator<'b> ⓘ
fn iterator<'a: 'b, 'b>(&'a self, mode: IteratorMode<'_>) -> DBIterator<'b> ⓘ
sourcefn full_iterator<'a: 'b, 'b>(&'a self, mode: IteratorMode<'_>) -> DBIterator<'b> ⓘ
fn full_iterator<'a: 'b, 'b>(&'a self, mode: IteratorMode<'_>) -> DBIterator<'b> ⓘ
Opens an interator with set_total_order_seek
enabled.
This must be used to iterate across prefixes when set_memtable_factory
has been called
with a Hash-based implementation.