public static class OutputWidthCalculators.DefaultOutputWidthCalculator extends Object implements OutputWidthCalculator
Modifier and Type | Field and Description |
---|---|
static OutputWidthCalculators.DefaultOutputWidthCalculator |
INSTANCE |
Constructor and Description |
---|
DefaultOutputWidthCalculator() |
Modifier and Type | Method and Description |
---|---|
int |
getOutputWidth(List<OutputWidthExpression.FixedLenExpr> args)
Defines a function's output size estimate as some fixed value specified via an option
If calculated size is greater than
Types.MAX_VARCHAR_LENGTH ,
it is replaced with Types.MAX_VARCHAR_LENGTH . |
public static final OutputWidthCalculators.DefaultOutputWidthCalculator INSTANCE
public int getOutputWidth(List<OutputWidthExpression.FixedLenExpr> args)
Types.MAX_VARCHAR_LENGTH
,
it is replaced with Types.MAX_VARCHAR_LENGTH
.getOutputWidth
in interface OutputWidthCalculator
args
- logical expressionsCopyright © 2021 The Apache Software Foundation. All rights reserved.