Skip to main content

Module predicate

Module predicate 

Source
Expand description

Scan predicates for block-level predicate pushdown.

A ScanPredicate describes a filter on a single column that can be evaluated against BlockStats to skip entire blocks without decompressing.

Predicates work for both numeric columns (comparing against BlockStats.min / BlockStats.max) and string columns (comparing against BlockStats.str_min / BlockStats.str_max). For string Eq predicates the optional bloom filter provides an additional fast-reject path.

Structs§

ScanPredicate
A predicate on a single column for block-level pushdown.

Enums§

PredicateOp
Comparison operator for scan predicates.
PredicateValue
The value side of a scan predicate.

Constants§

BLOOM_BYTES
Bloom filter size in bytes (2048 bits).

Functions§

bloom_insert
Insert a string value into a bloom filter buffer.
bloom_may_contain
Test whether a string value may be present in a bloom filter.
build_bloom
Build a new bloom filter buffer and insert all provided string values.