|
| LeftRightPad (final String name) |
|
SqlCall | createCall (@Nullable SqlLiteral functionQualifier, SqlParserPos pos,@Nullable SqlNode...operands) |
|
boolean | checkOperandTypes (SqlCallBinding callBinding, boolean throwOnFailure) |
|
boolean | requiresCreate (List< SqlNode > operands) |
|
com.mapd.calcite.parser.HeavyDBSqlOperatorTable.LeftRightPad.LeftRightPad |
( |
final String |
name | ) |
|
|
inline |
Definition at line 1100 of file HeavyDBSqlOperatorTable.java.
1102 SqlKind.OTHER_FUNCTION,
1103 ReturnTypes.ARG0.andThen(SqlTypeTransforms.TO_NULLABLE)
1104 .andThen(SqlTypeTransforms.TO_VARYING),
1106 OperandTypes.and(OperandTypes.family(SqlTypeFamily.STRING,
1107 SqlTypeFamily.INTEGER,
1108 SqlTypeFamily.STRING),
1109 new SameOperandTypeChecker(3) {
1111 protected List<Integer> getOperandList(
int operandCount) {
1112 return ImmutableList.of(0, 2);
1115 SqlFunctionCategory.STRING);
boolean com.mapd.calcite.parser.HeavyDBSqlOperatorTable.LeftRightPad.checkOperandTypes |
( |
SqlCallBinding |
callBinding, |
|
|
boolean |
throwOnFailure |
|
) |
| |
|
inline |
Definition at line 1142 of file HeavyDBSqlOperatorTable.java.
References TRIM.
1143 if (!super.checkOperandTypes(callBinding, throwOnFailure)) {
1148 return SqlTypeUtil.isCharTypeComparable(callBinding,
1149 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 1119 of file HeavyDBSqlOperatorTable.java.
1122 assert functionQualifier == null;
1123 switch (operands.length) {
1125 operands =
new SqlNode[] {
1126 operands[0], operands[1], SqlLiteral.createCharString(
" ", pos)};
1129 if (operands[2] == null) {
1130 operands[2] = SqlLiteral.createCharString(
" ", pos);
1132 operands =
new SqlNode[] {operands[0], operands[1], operands[2]};
1135 throw new IllegalArgumentException(
1136 "Invalid operand count " + Arrays.toString(operands));
1138 return super.createCall(functionQualifier, pos, operands);
boolean com.mapd.calcite.parser.HeavyDBSqlOperatorTable.LeftRightPad.requiresCreate |
( |
List< SqlNode > |
operands | ) |
|
|
inline |
The documentation for this class was generated from the following file: