|
| LeftRightTrim (final String name, final SqlKind kind) |
|
SqlCall | createCall (@Nullable SqlLiteral functionQualifier, SqlParserPos pos,@Nullable SqlNode...operands) |
|
boolean | requiresCreate (List< SqlNode > operands) |
|
com.mapd.calcite.parser.HeavyDBSqlOperatorTable.LeftRightTrim.LeftRightTrim |
( |
final String |
name, |
|
|
final SqlKind |
kind |
|
) |
| |
|
inline |
Definition at line 1038 of file HeavyDBSqlOperatorTable.java.
1041 ReturnTypes.ARG0.andThen(SqlTypeTransforms.TO_NULLABLE)
1042 .andThen(SqlTypeTransforms.TO_VARYING),
1045 OperandTypes.family(SqlTypeFamily.STRING, SqlTypeFamily.STRING),
1046 new SameOperandTypeChecker(2) {
1048 protected List<Integer> getOperandList(
int operandCount) {
1049 return ImmutableList.of(0, 1);
1052 SqlFunctionCategory.STRING);
SqlCall com.mapd.calcite.parser.HeavyDBSqlOperatorTable.LeftRightTrim.createCall |
( |
@Nullable SqlLiteral |
functionQualifier, |
|
|
SqlParserPos |
pos, |
|
|
@Nullable SqlNode... |
operands |
|
) |
| |
|
inline |
Definition at line 1056 of file HeavyDBSqlOperatorTable.java.
1059 assert functionQualifier == null;
1060 switch (operands.length) {
1062 operands =
new SqlNode[] {operands[0], SqlLiteral.createCharString(
" ", pos)};
1065 if (operands[1] == null) {
1066 operands[1] = SqlLiteral.createCharString(
" ", pos);
1068 operands =
new SqlNode[] {operands[0], operands[1]};
1071 throw new IllegalArgumentException(
1072 "Invalid operand count " + Arrays.toString(operands));
1074 return super.createCall(functionQualifier, pos, operands);
boolean com.mapd.calcite.parser.HeavyDBSqlOperatorTable.LeftRightTrim.requiresCreate |
( |
List< SqlNode > |
operands | ) |
|
|
inline |
The documentation for this class was generated from the following file: