Package org.apache.druid.math.expr
Class Exprs
java.lang.Object
org.apache.druid.math.expr.Exprs
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic Expr.BindingAnalysisanalyzeBindings(List<Expr> args) Return aExpr.BindingAnalysisthat represents an analysis of all provided args.cannotVectorize(String msg) cannotVectorize(Expr expr) cannotVectorize(Function function) decomposeAnd(Expr expr) Decomposes any expr into a list of exprs that, if ANDed together, are equivalent to the input expr.decomposeEquals(Expr expr, String rightPrefix) Decomposes an equality expr into anEquality.
-
Field Details
-
EXPR_CACHE_KEY
public static final byte EXPR_CACHE_KEY- See Also:
-
-
Constructor Details
-
Exprs
public Exprs()
-
-
Method Details
-
cannotVectorize
-
cannotVectorize
-
cannotVectorize
-
cannotVectorize
-
analyzeBindings
Return aExpr.BindingAnalysisthat represents an analysis of all provided args. -
decomposeAnd
Decomposes any expr into a list of exprs that, if ANDed together, are equivalent to the input expr.- Parameters:
expr- any expr- Returns:
- list of exprs that, if ANDed together, are equivalent to the input expr
-
decomposeEquals
Decomposes an equality expr into anEquality. Used by join-related code to identify equi-joins.- Returns:
- decomposed equality, or empty if the input expr was not an equality expr
-