pub trait DBIterator {
// Required method
fn iter_opt(
&self,
col: Col,
mode: IteratorMode<'_>,
readopts: &ReadOptions,
) -> Result<DBIter<'_>>;
// Provided method
fn iter(&self, col: Col, mode: IteratorMode<'_>) -> Result<DBIter<'_>> { ... }
}
Expand description
An iterator over a column family, with specifiable ranges and direction.
Required Methods§
Sourcefn iter_opt(
&self,
col: Col,
mode: IteratorMode<'_>,
readopts: &ReadOptions,
) -> Result<DBIter<'_>>
fn iter_opt( &self, col: Col, mode: IteratorMode<'_>, readopts: &ReadOptions, ) -> Result<DBIter<'_>>
Opens an iterator using the provided IteratorMode and ReadOptions. This is used when you want to iterate over a specific ColumnFamily with a modified ReadOptions