Class StringCastReturnTypeInference
java.lang.Object
org.apache.drill.exec.expr.fn.output.StringCastReturnTypeInference
- All Implemented Interfaces:
ReturnTypeInference
Return type calculation implementation for functions with return type set as
FunctionTemplate.ReturnType.STRING_CAST
.-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptiongetType
(List<LogicalExpression> logicalExpressions, FunctionAttributes attributes) Defines function return type and sets cast length as type precision if cast length is simple long expression.
-
Field Details
-
INSTANCE
-
-
Constructor Details
-
StringCastReturnTypeInference
public StringCastReturnTypeInference()
-
-
Method Details
-
getType
public TypeProtos.MajorType getType(List<LogicalExpression> logicalExpressions, FunctionAttributes attributes) Defines function return type and sets cast length as type precision if cast length is simple long expression.- Specified by:
getType
in interfaceReturnTypeInference
- Parameters:
logicalExpressions
- logical expressionsattributes
- function attributes- Returns:
- return type
-