|
| RegexpCount () |
|
SqlCall | createCall (@Nullable SqlLiteral functionQualifier, SqlParserPos pos,@Nullable SqlNode...operands) |
|
RelDataType | inferReturnType (SqlOperatorBinding opBinding) |
|
com.mapd.calcite.parser.HeavyDBSqlOperatorTable.RegexpCount.RegexpCount |
( |
| ) |
|
|
inline |
SqlCall com.mapd.calcite.parser.HeavyDBSqlOperatorTable.RegexpCount.createCall |
( |
@Nullable SqlLiteral |
functionQualifier, |
|
|
SqlParserPos |
pos, |
|
|
@Nullable SqlNode... |
operands |
|
) |
| |
|
inline |
Definition at line 1471 of file HeavyDBSqlOperatorTable.java.
1474 assert functionQualifier == null;
1475 final int num_operands = operands.length;
1476 if (num_operands < 2 || num_operands > 4) {
1477 throw new IllegalArgumentException(
1478 "Invalid operand count " + Arrays.toString(operands));
1480 SqlNode[] new_operands =
new SqlNode[4];
1482 new_operands[0] = operands[0];
1484 new_operands[1] = operands[1];
1486 if (num_operands < 3 || operands[2] == null) {
1487 new_operands[2] = SqlLiteral.createExactNumeric(
"1", pos);
1489 new_operands[2] = operands[2];
1492 if (num_operands < 4 || operands[3] == null) {
1493 new_operands[3] = SqlLiteral.createCharString(
"c", pos);
1495 new_operands[3] = operands[3];
1497 return super.createCall(functionQualifier, pos, new_operands);
static java.util.List<SqlTypeFamily> com.mapd.calcite.parser.HeavyDBSqlOperatorTable.RegexpCount.getSignatureFamilies |
( |
| ) |
|
|
inlinestaticprivate |
RelDataType com.mapd.calcite.parser.HeavyDBSqlOperatorTable.RegexpCount.inferReturnType |
( |
SqlOperatorBinding |
opBinding | ) |
|
|
inline |
Definition at line 1501 of file HeavyDBSqlOperatorTable.java.
1502 final RelDataTypeFactory typeFactory = opBinding.getTypeFactory();
1503 RelDataType dataType = typeFactory.createSqlType(SqlTypeName.BIGINT);
1504 return typeFactory.createTypeWithNullability(dataType,
true);
The documentation for this class was generated from the following file: