Skip to main content

FilterMaskAccumulator

Enum FilterMaskAccumulator 

Source
enum FilterMaskAccumulator {
    Empty,
    Single(BooleanBuffer),
    Combined(BooleanBufferBuilder),
}
Expand description

Accumulates filter masks for decoded chunks in one logical output batch.

The first chunk keeps its [BooleanBuffer] without copying. A second chunk promotes the accumulator to a [BooleanBufferBuilder], and later chunks are appended to it. For example, chunks 1000 and 1 become 10001:

          append(1000)             append(1)
  Empty ───────────────▶ Single ───────────────▶ Combined
                         1000                    10001
                         (zero copy)             (promoted to builder)

The combined mask lines up with the rows that [ArrayReader::read_records] buffered across the decoded chunks (see read_mask_batch). Consuming the buffered batch and filtering it with the accumulated mask yields the output.

  decoded rows:   0 1 2 3   11   <-- buffered by the array reader
  chunk masks:   [1 0 0 0] [1]
  finish():       1 0 0 0   1    <-- filters the whole batch in one pass

Variants§

§

Empty

§

Single(BooleanBuffer)

§

Combined(BooleanBufferBuilder)

Implementations§

Source§

impl FilterMaskAccumulator

Source

fn append(&mut self, mask: BooleanBuffer)

Source

fn finish(self) -> Option<BooleanBuffer>

Trait Implementations§

Source§

impl Default for FilterMaskAccumulator

Source§

fn default() -> FilterMaskAccumulator

Returns the “default value” for a type. Read more

Auto Trait Implementations§

Blanket Implementations§

§

impl<T> Allocation for T
where T: RefUnwindSafe + Send + Sync,

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<T> Ungil for T
where T: Send,

§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

§

fn vzip(self) -> V