Class FunctionCallFactory
java.lang.Object
org.apache.drill.common.expression.FunctionCallFactory
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic String
static LogicalExpression
createAnyValue
(String functionName, List<LogicalExpression> args) static LogicalExpression
static LogicalExpression
createBooleanOperator
(String functionName, List<LogicalExpression> args) static LogicalExpression
createBooleanOperator
(String functionName, ExpressionPosition ep, List<LogicalExpression> args) static LogicalExpression
createByOp
(List<LogicalExpression> args, ExpressionPosition ep, List<String> opTypes) static LogicalExpression
createCast
(TypeProtos.MajorType type, ExpressionPosition ep, LogicalExpression expr) static LogicalExpression
createConvert
(String function, String conversionType, LogicalExpression expr, ExpressionPosition ep) static LogicalExpression
createExpression
(String functionName, List<LogicalExpression> args) static LogicalExpression
createExpression
(String functionName, ExpressionPosition ep, List<LogicalExpression> args) static LogicalExpression
createExpression
(String functionName, ExpressionPosition ep, LogicalExpression... e) static boolean
isBooleanOperator
(String funcName)
-
Constructor Details
-
FunctionCallFactory
public FunctionCallFactory()
-
-
Method Details
-
convertToDrillFunctionName
-
isBooleanOperator
-
createCast
public static LogicalExpression createCast(TypeProtos.MajorType type, ExpressionPosition ep, LogicalExpression expr) -
createConvert
public static LogicalExpression createConvert(String function, String conversionType, LogicalExpression expr, ExpressionPosition ep) -
createAnyValue
-
createAnyValue
-
createExpression
-
createExpression
public static LogicalExpression createExpression(String functionName, ExpressionPosition ep, List<LogicalExpression> args) -
createExpression
public static LogicalExpression createExpression(String functionName, ExpressionPosition ep, LogicalExpression... e) -
createBooleanOperator
public static LogicalExpression createBooleanOperator(String functionName, List<LogicalExpression> args) -
createBooleanOperator
public static LogicalExpression createBooleanOperator(String functionName, ExpressionPosition ep, List<LogicalExpression> args) -
createByOp
public static LogicalExpression createByOp(List<LogicalExpression> args, ExpressionPosition ep, List<String> opTypes)
-