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