risingwave_stream::executor::aggregation::agg_state_cache

Trait AggStateCacheFiller

source
pub trait AggStateCacheFiller {
    // Required methods
    fn capacity(&self) -> Option<usize>;
    fn append(&mut self, key: MemcmpEncoded, value: CacheValue);
    fn finish(self: Box<Self>);
}
Expand description

Trait that defines agg state cache syncing interface.

Required Methods§

source

fn capacity(&self) -> Option<usize>

Get the capacity of the cache to be filled. None means unlimited.

source

fn append(&mut self, key: MemcmpEncoded, value: CacheValue)

Insert an entry to the cache without checking row count, capacity, key order, etc. Just insert into the inner cache structure, e.g. BTreeMap.

source

fn finish(self: Box<Self>)

Mark the cache as synced.

Implementors§