Skip to main content

Module filter

Module filter 

Source
Expand description

Vectorized predicate filtering on Arrow arrays.

Applies time-range and tag-equality filters to Arrow RecordBatches, producing filtered batches containing only matching rows.

Functions§

apply_filter
Apply a boolean mask to a RecordBatch, returning only matching rows.
combine_masks
Combine multiple boolean masks with AND.
dict_equality_mask
Dictionary-encoded equality filter using Arrow’s vectorized eq kernel.
filter_batch
Apply time range and tag filters to a RecordBatch.
filter_tombstoned
Filter out rows belonging to tombstoned series.
project_batch
Build a RecordBatch with the specified column projection.
tag_equality_mask
Apply a tag equality filter: column == value.
time_range_mask
Apply a time range filter: timestamp >= start AND timestamp <= end.