Class FunctionContext
- java.lang.Object
-
- org.apache.pinot.common.request.context.FunctionContext
-
public class FunctionContext extends Object
TheFunctionContextclass represents the function in the expression.Pinot currently supports 2 types of functions: Aggregation (e.g. SUM, MAX) and Transform (e.g. ADD, SUB).
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classFunctionContext.Type
-
Constructor Summary
Constructors Constructor Description FunctionContext(FunctionContext.Type type, String functionName, List<ExpressionContext> arguments)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object o)List<ExpressionContext>getArguments()voidgetColumns(Set<String> columns)Adds the columns (IDENTIFIER expressions) in the function to the given set.StringgetFunctionName()FunctionContext.TypegetType()inthashCode()voidsetFunctionName(String functionName)StringtoString()
-
-
-
Constructor Detail
-
FunctionContext
public FunctionContext(FunctionContext.Type type, String functionName, List<ExpressionContext> arguments)
-
-
Method Detail
-
getType
public FunctionContext.Type getType()
-
setFunctionName
public void setFunctionName(String functionName)
-
getFunctionName
public String getFunctionName()
-
getArguments
public List<ExpressionContext> getArguments()
-
getColumns
public void getColumns(Set<String> columns)
Adds the columns (IDENTIFIER expressions) in the function to the given set.
-
-