Package org.apache.druid.math.expr
Class ExprMacroTable.BaseScalarMacroFunctionExpr
- java.lang.Object
-
- org.apache.druid.math.expr.ExprMacroTable.BaseMacroFunctionExpr
-
- org.apache.druid.math.expr.ExprMacroTable.BaseScalarMacroFunctionExpr
-
- All Implemented Interfaces:
Cacheable,Expr,ExprMacroTable.ExprMacroFunctionExpr
- Direct Known Subclasses:
TimestampExtractExprMacro.TimestampExtractDynamicExpr,TimestampExtractExprMacro.TimestampExtractExpr,TimestampFloorExprMacro.TimestampFloorDynamicExpr,TimestampFloorExprMacro.TimestampFloorExpr
- Enclosing class:
- ExprMacroTable
public abstract static class ExprMacroTable.BaseScalarMacroFunctionExpr extends ExprMacroTable.BaseMacroFunctionExpr
Base class forExprfromExprMacroTable.ExprMacrothat accepts all-scalar arguments.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.apache.druid.math.expr.Expr
Expr.BindingAnalysis, Expr.InputBindingInspector, Expr.ObjectBinding, Expr.Shuttle, Expr.VectorInputBinding, Expr.VectorInputBindingInspector
-
-
Field Summary
-
Fields inherited from class org.apache.druid.math.expr.ExprMacroTable.BaseMacroFunctionExpr
args, macro
-
Fields inherited from interface org.apache.druid.math.expr.Expr
ARG_JOINER, NULL_LITERAL
-
-
Constructor Summary
Constructors Constructor Description BaseScalarMacroFunctionExpr(ExprMacroTable.ExprMacro macro, List<Expr> macroArgs)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected Expr.BindingAnalysissupplyAnalyzeInputs()Implemented by subclasses to provide the value forExprMacroTable.BaseMacroFunctionExpr.analyzeInputs(), which uses a memoized supplier.-
Methods inherited from class org.apache.druid.math.expr.ExprMacroTable.BaseMacroFunctionExpr
analyzeInputs, asVectorProcessor, canVectorize, equals, getArgs, hashCode, stringify, toString, visit
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface org.apache.druid.math.expr.Expr
asColumnIndexSupplier, asSingleThreaded, canFallbackVectorize, decorateCacheKeyBuilder, eval, getBindingIfIdentifier, getCacheKey, getIdentifierExprIfIdentifierExpr, getIdentifierIfIdentifier, getLiteralValue, getOutputType, isIdentifier, isLiteral, isNullLiteral
-
-
-
-
Constructor Detail
-
BaseScalarMacroFunctionExpr
public BaseScalarMacroFunctionExpr(ExprMacroTable.ExprMacro macro, List<Expr> macroArgs)
-
-
Method Detail
-
supplyAnalyzeInputs
protected Expr.BindingAnalysis supplyAnalyzeInputs()
Description copied from class:ExprMacroTable.BaseMacroFunctionExprImplemented by subclasses to provide the value forExprMacroTable.BaseMacroFunctionExpr.analyzeInputs(), which uses a memoized supplier.- Specified by:
supplyAnalyzeInputsin classExprMacroTable.BaseMacroFunctionExpr
-
-