Class OutputWidthCalculators.CloneOutputWidthCalculator
java.lang.Object
org.apache.drill.exec.expr.fn.output.OutputWidthCalculators.CloneOutputWidthCalculator
- All Implemented Interfaces:
OutputWidthCalculator
- Enclosing class:
- OutputWidthCalculators
public static class OutputWidthCalculators.CloneOutputWidthCalculator
extends Object
implements OutputWidthCalculator
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionint
Defines a function's output size estimate as the same length as the first argument.
-
Field Details
-
INSTANCE
-
-
Constructor Details
-
CloneOutputWidthCalculator
public CloneOutputWidthCalculator()
-
-
Method Details
-
getOutputWidth
Defines a function's output size estimate as the same length as the first argument. In other words, treats the function as a CLONE function If calculated size is greater thanTypes.MAX_VARCHAR_LENGTH
, it is replaced withTypes.MAX_VARCHAR_LENGTH
.- Specified by:
getOutputWidth
in interfaceOutputWidthCalculator
- Parameters:
args
- logical expressions- Returns:
- return type
-