Class PushFiltersToSource
java.lang.Object
org.elasticsearch.xpack.esql.rule.Rule<FilterExec,PhysicalPlan>
org.elasticsearch.xpack.esql.rule.ParameterizedRule<FilterExec,PhysicalPlan,LocalPhysicalOptimizerContext>
org.elasticsearch.xpack.esql.optimizer.PhysicalOptimizerRules.ParameterizedOptimizerRule<FilterExec,LocalPhysicalOptimizerContext>
org.elasticsearch.xpack.esql.optimizer.rules.physical.local.PushFiltersToSource
public class PushFiltersToSource
extends PhysicalOptimizerRules.ParameterizedOptimizerRule<FilterExec,LocalPhysicalOptimizerContext>
-
Field Summary
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic booleanCheck if the given expression can be pushed down to the source.protected PhysicalPlanrule(FilterExec filterExec, LocalPhysicalOptimizerContext ctx) Methods inherited from class org.elasticsearch.xpack.esql.optimizer.PhysicalOptimizerRules.ParameterizedOptimizerRule
applyMethods inherited from class org.elasticsearch.xpack.esql.rule.ParameterizedRule
apply
-
Constructor Details
-
PushFiltersToSource
public PushFiltersToSource()
-
-
Method Details
-
rule
- Specified by:
rulein classPhysicalOptimizerRules.ParameterizedOptimizerRule<FilterExec,LocalPhysicalOptimizerContext>
-
canPushToSource
Check if the given expression can be pushed down to the source. This version of the check is called when we do not have SearchStats available. It assumes no exact subfields for TEXT fields, and makes the indexed/doc-values check using the isAggregatable flag only, which comes from field-caps, represents the field state over the entire cluster (is not node specific), and has risks for indexed=false/doc_values=true fields.
-