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§

source

fn get_raw_iter<'a: 'b, 'b>( &'a self, readopts: &ReadOptions ) -> DBRawIterator<'b>

Provided Methods§

source

fn get_iter<'a: 'b, 'b>( &'a self, readopts: &ReadOptions, mode: IteratorMode<'_> ) -> DBIterator<'b>

source

fn iterator_opt<'a: 'b, 'b>( &'a self, mode: IteratorMode<'_>, readopts: &ReadOptions ) -> DBIterator<'b>

source

fn iterator<'a: 'b, 'b>(&'a self, mode: IteratorMode<'_>) -> DBIterator<'b>

source

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.

source

fn prefix_iterator<'a: 'b, 'b>(&'a self, prefix: &[u8]) -> DBIterator<'b>

source

fn raw_iterator<'a: 'b, 'b>(&'a self) -> DBRawIterator<'b>

Implementors§