|
| LeftRightPad (final String name) |
|
SqlCall | createCall (@Nullable SqlLiteral functionQualifier, SqlParserPos pos,@Nullable SqlNode...operands) |
|
boolean | checkOperandTypes (SqlCallBinding callBinding, boolean throwOnFailure) |
|
com.mapd.calcite.parser.HeavyDBSqlOperatorTable.LeftRightPad.LeftRightPad |
( |
final String |
name | ) |
|
|
inline |
Definition at line 840 of file HeavyDBSqlOperatorTable.java.
842 SqlKind.OTHER_FUNCTION,
843 ReturnTypes.ARG0.andThen(SqlTypeTransforms.TO_NULLABLE)
844 .andThen(SqlTypeTransforms.TO_VARYING),
846 OperandTypes.and(OperandTypes.family(SqlTypeFamily.STRING,
847 SqlTypeFamily.INTEGER,
848 SqlTypeFamily.STRING),
849 new SameOperandTypeChecker(3) {
851 protected List<Integer> getOperandList(
int operandCount) {
852 return ImmutableList.of(0, 2);
855 SqlFunctionCategory.STRING);
boolean com.mapd.calcite.parser.HeavyDBSqlOperatorTable.LeftRightPad.checkOperandTypes |
( |
SqlCallBinding |
callBinding, |
|
|
boolean |
throwOnFailure |
|
) |
| |
|
inline |
Definition at line 882 of file HeavyDBSqlOperatorTable.java.
References TRIM.
883 if (!super.checkOperandTypes(callBinding, throwOnFailure)) {
888 return SqlTypeUtil.isCharTypeComparable(callBinding,
889 ImmutableList.of(callBinding.operand(0), callBinding.operand(2)),
SqlCall com.mapd.calcite.parser.HeavyDBSqlOperatorTable.LeftRightPad.createCall |
( |
@Nullable SqlLiteral |
functionQualifier, |
|
|
SqlParserPos |
pos, |
|
|
@Nullable SqlNode... |
operands |
|
) |
| |
|
inline |
Definition at line 859 of file HeavyDBSqlOperatorTable.java.
862 assert functionQualifier == null;
863 switch (operands.length) {
865 operands =
new SqlNode[] {
866 operands[0], operands[1], SqlLiteral.createCharString(
" ", pos)};
869 if (operands[2] == null) {
870 operands[2] = SqlLiteral.createCharString(
" ", pos);
872 operands =
new SqlNode[] {operands[0], operands[1], operands[2]};
875 throw new IllegalArgumentException(
876 "Invalid operand count " + Arrays.toString(operands));
878 return super.createCall(functionQualifier, pos, operands);
The documentation for this class was generated from the following file: