Package org.apache.druid.math.expr
Class Exprs
- java.lang.Object
-
- org.apache.druid.math.expr.Exprs
-
public class Exprs extends Object
-
-
Field Summary
Fields Modifier and Type Field Description static byteEXPR_CACHE_KEY
-
Constructor Summary
Constructors Constructor Description Exprs()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static UnsupportedOperationExceptioncannotVectorize()static UnsupportedOperationExceptioncannotVectorize(String msg)static UnsupportedOperationExceptioncannotVectorize(Expr expr)static UnsupportedOperationExceptioncannotVectorize(Function function)static List<Expr>decomposeAnd(Expr expr)Decomposes any expr into a list of exprs that, if ANDed together, are equivalent to the input expr.static Optional<Equality>decomposeEquals(Expr expr, String rightPrefix)Decomposes an equality expr into anEquality.
-
-
-
Field Detail
-
EXPR_CACHE_KEY
public static final byte EXPR_CACHE_KEY
- See Also:
- Constant Field Values
-
-
Method Detail
-
cannotVectorize
public static UnsupportedOperationException cannotVectorize(Expr expr)
-
cannotVectorize
public static UnsupportedOperationException cannotVectorize(Function function)
-
cannotVectorize
public static UnsupportedOperationException cannotVectorize()
-
cannotVectorize
public static UnsupportedOperationException cannotVectorize(String msg)
-
decomposeAnd
public static List<Expr> decomposeAnd(Expr expr)
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
-
-