risingwave_common::array

Trait CompactableArray

source
trait CompactableArray: Array {
    // Required method
    fn compact(&self, visibility: &Bitmap, cardinality: usize) -> Self;
}
Expand description

Implement compact on array, which removes element according to visibility.

Required Methods§

source

fn compact(&self, visibility: &Bitmap, cardinality: usize) -> Self

Select some elements from Array based on visibility bitmap. cardinality is only used to decide capacity of the new Array.

Object Safety§

This trait is not object safe.

Implementors§