Expand description
Selective-predicate analysis for bitmap-producer emission.
Inspects a SqlPlan scan or index-lookup node and returns a BitmapHint
when the node qualifies for bitmap pushdown:
- Equality on a
Readyindexed column (WHERE col = const) - IN-list on a
Readyindexed column with ≤ 1024 values SqlPlan::DocumentIndexLookup(already a single-field equality lookup)
Range predicates with low selectivity are excluded when no statistics are available — no selectivity guess is made. Only deterministic, index-backed shapes are emitted.
The hint carries the collection name, index field, and the predicate value(s)
so the converter layer can build an IndexedFetch physical sub-plan.
Structs§
- Bitmap
Hint - A bitmap-producer hint: the plan child qualifies for bitmap pushdown.
Functions§
- analyze
- Inspect
planand return aBitmapHintif the plan qualifies for bitmap pushdown, orNoneif the plan should run without a prefilter.