|
| 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 905 of file HeavyDBSqlOperatorTable.java.
907 SqlKind.OTHER_FUNCTION,
908 ReturnTypes.ARG0.andThen(SqlTypeTransforms.TO_NULLABLE)
909 .andThen(SqlTypeTransforms.TO_VARYING),
911 OperandTypes.and(OperandTypes.family(SqlTypeFamily.STRING,
912 SqlTypeFamily.INTEGER,
913 SqlTypeFamily.STRING),
914 new SameOperandTypeChecker(3) {
916 protected List<Integer> getOperandList(
int operandCount) {
917 return ImmutableList.of(0, 2);
920 SqlFunctionCategory.STRING);
boolean com.mapd.calcite.parser.HeavyDBSqlOperatorTable.LeftRightPad.checkOperandTypes |
( |
SqlCallBinding |
callBinding, |
|
|
boolean |
throwOnFailure |
|
) |
| |
|
inline |
Definition at line 947 of file HeavyDBSqlOperatorTable.java.
References TRIM.
948 if (!super.checkOperandTypes(callBinding, throwOnFailure)) {
953 return SqlTypeUtil.isCharTypeComparable(callBinding,
954 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 924 of file HeavyDBSqlOperatorTable.java.
927 assert functionQualifier == null;
928 switch (operands.length) {
930 operands =
new SqlNode[] {
931 operands[0], operands[1], SqlLiteral.createCharString(
" ", pos)};
934 if (operands[2] == null) {
935 operands[2] = SqlLiteral.createCharString(
" ", pos);
937 operands =
new SqlNode[] {operands[0], operands[1], operands[2]};
940 throw new IllegalArgumentException(
941 "Invalid operand count " + Arrays.toString(operands));
943 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: