Skip to main content

Module predicate

Module predicate 

Source
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 Ready indexed column (WHERE col = const)
  • IN-list on a Ready indexed 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§

BitmapHint
A bitmap-producer hint: the plan child qualifies for bitmap pushdown.

Functions§

analyze
Inspect plan and return a BitmapHint if the plan qualifies for bitmap pushdown, or None if the plan should run without a prefilter.