StreamingIndex

Trait StreamingIndex 

Source
pub trait StreamingIndex {
    // Required methods
    fn apply(&mut self, op: UpdateOp) -> Result<()>;
    fn apply_batch(&mut self, batch: UpdateBatch) -> Result<UpdateStats>;
    fn compact(&mut self) -> Result<UpdateStats>;
    fn stats(&self) -> StreamingStats;
}
Expand description

Trait for indices that support streaming updates.

Required Methods§

Source

fn apply(&mut self, op: UpdateOp) -> Result<()>

Apply a single update operation.

Source

fn apply_batch(&mut self, batch: UpdateBatch) -> Result<UpdateStats>

Apply a batch of updates atomically.

Source

fn compact(&mut self) -> Result<UpdateStats>

Compact/merge buffered updates into main index.

Source

fn stats(&self) -> StreamingStats

Get streaming statistics.

Implementors§