Class ExprMacroTable

java.lang.Object
org.apache.druid.math.expr.ExprMacroTable
Direct Known Subclasses:
GuiceExprMacroTable

public class ExprMacroTable extends Object
Mechanism by which Druid expressions can define new functions for the Druid expression language. When ExprListenerImpl is creating a FunctionExpr, ExprMacroTable will first be checked to find the function by name, falling back to Parser.getFunction(String) to map to a built-in Function if none is defined in the macro table.