Class CalciteCnfHelper
java.lang.Object
org.apache.druid.segment.filter.cnf.CalciteCnfHelper
All functions in this class were basically adopted from Apache Calcite and modified to use them in Druid.
See https://github.com/apache/calcite/blob/branch-1.21/core/src/main/java/org/apache/calcite/rex/RexUtil.java#L1615
for original implementation.
-
Method Summary
Modifier and TypeMethodDescriptionconjunctions(Filter rexPredicate) Returns a condition decomposed by AND.static voiddecomposeConjunction(Filter rexPredicate, List<Filter> rexList) Decomposes a predicate into a list of expressions that are AND'ed together.static Filter
-
Method Details
-
pull
-
conjunctions
Returns a condition decomposed by AND.For example,
conjunctions(TRUE)returns the empty list;conjunctions(FALSE)returns list{FALSE}. -
decomposeConjunction
Decomposes a predicate into a list of expressions that are AND'ed together.- Parameters:
rexPredicate- predicate to be analyzedrexList- list of decomposed RexNodes
-