|
| 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 1093 of file HeavyDBSqlOperatorTable.java.
1095 SqlKind.OTHER_FUNCTION,
1096 ReturnTypes.ARG0.andThen(SqlTypeTransforms.TO_NULLABLE)
1097 .andThen(SqlTypeTransforms.TO_VARYING),
1099 OperandTypes.and(OperandTypes.family(SqlTypeFamily.STRING,
1100 SqlTypeFamily.INTEGER,
1101 SqlTypeFamily.STRING),
1102 new SameOperandTypeChecker(3) {
1104 protected List<Integer> getOperandList(
int operandCount) {
1105 return ImmutableList.of(0, 2);
1108 SqlFunctionCategory.STRING);
boolean com.mapd.calcite.parser.HeavyDBSqlOperatorTable.LeftRightPad.checkOperandTypes |
( |
SqlCallBinding |
callBinding, |
|
|
boolean |
throwOnFailure |
|
) |
| |
|
inline |
Definition at line 1135 of file HeavyDBSqlOperatorTable.java.
References TRIM.
1136 if (!super.checkOperandTypes(callBinding, throwOnFailure)) {
1141 return SqlTypeUtil.isCharTypeComparable(callBinding,
1142 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 1112 of file HeavyDBSqlOperatorTable.java.
1115 assert functionQualifier == null;
1116 switch (operands.length) {
1118 operands =
new SqlNode[] {
1119 operands[0], operands[1], SqlLiteral.createCharString(
" ", pos)};
1122 if (operands[2] == null) {
1123 operands[2] = SqlLiteral.createCharString(
" ", pos);
1125 operands =
new SqlNode[] {operands[0], operands[1], operands[2]};
1128 throw new IllegalArgumentException(
1129 "Invalid operand count " + Arrays.toString(operands));
1131 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: