Skip to main content

EntryIterator

Trait EntryIterator 

Source
pub trait EntryIterator<'a>: Send {
    // Required methods
    fn peek(&self) -> Option<&Entry<'a>>;
    fn advance(&mut self);
    fn is_exhausted(&self) -> bool;
    fn source_priority(&self) -> u8;
}
Expand description

Trait for a streaming source of entries

Required Methods§

Source

fn peek(&self) -> Option<&Entry<'a>>

Peek at the next entry without consuming it

Source

fn advance(&mut self)

Advance to the next entry

Source

fn is_exhausted(&self) -> bool

Check if the iterator is exhausted

Source

fn source_priority(&self) -> u8

Get the source priority (lower = higher priority for same key)

Implementors§

Source§

impl<'a> EntryIterator<'a> for MemtableIterator<'a>

Source§

impl<'a> EntryIterator<'a> for SstIterator<'a>

Source§

impl<'a> EntryIterator<'a> for VecIterator<'a>

Source§

impl<'a, I: EntryIterator<'a> + Send> EntryIterator<'a> for RangeIterator<'a, I>