Class OutputWidthCalculators.ConcatOutputWidthCalculator
java.lang.Object
org.apache.drill.exec.expr.fn.output.OutputWidthCalculators.ConcatOutputWidthCalculator
- All Implemented Interfaces:
OutputWidthCalculator
- Enclosing class:
- OutputWidthCalculators
public static class OutputWidthCalculators.ConcatOutputWidthCalculator
extends Object
implements OutputWidthCalculator
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionint
Defines a function's output size estimate as sum of input sizes If calculated size is greater thanTypes.MAX_VARCHAR_LENGTH
, it is replaced withTypes.MAX_VARCHAR_LENGTH
.
-
Field Details
-
INSTANCE
-
-
Constructor Details
-
ConcatOutputWidthCalculator
public ConcatOutputWidthCalculator()
-
-
Method Details
-
getOutputWidth
Defines a function's output size estimate as sum of input sizes If calculated size is greater thanTypes.MAX_VARCHAR_LENGTH
, it is replaced withTypes.MAX_VARCHAR_LENGTH
.- Specified by:
getOutputWidth
in interfaceOutputWidthCalculator
- Parameters:
args
-- Returns:
- return type
-