OmniSciDB  085a039ca4
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
com.mapd.calcite.parser.HeavyDBSqlOperatorTable.Replace Class Reference
+ Inheritance diagram for com.mapd.calcite.parser.HeavyDBSqlOperatorTable.Replace:
+ Collaboration diagram for com.mapd.calcite.parser.HeavyDBSqlOperatorTable.Replace:

Public Member Functions

 Replace ()
 
RelDataType inferReturnType (SqlOperatorBinding opBinding)
 
SqlCall createCall (@Nullable SqlLiteral functionQualifier, SqlParserPos pos,@Nullable SqlNode...operands)
 

Static Private Member Functions

static java.util.List
< SqlTypeFamily > 
getSignatureFamilies ()
 

Detailed Description

Definition at line 936 of file HeavyDBSqlOperatorTable.java.

Constructor & Destructor Documentation

com.mapd.calcite.parser.HeavyDBSqlOperatorTable.Replace.Replace ( )
inline

Definition at line 937 of file HeavyDBSqlOperatorTable.java.

References heavydb.dtypes.STRING.

937  {
938  super("REPLACE",
939  SqlKind.OTHER_FUNCTION,
940  null,
941  null,
942  OperandTypes.family(getSignatureFamilies()),
944  }
tuple STRING
Definition: dtypes.py:31
static java.util.List< SqlTypeFamily > getSignatureFamilies()

Member Function Documentation

SqlCall com.mapd.calcite.parser.HeavyDBSqlOperatorTable.Replace.createCall ( @Nullable SqlLiteral  functionQualifier,
SqlParserPos  pos,
@Nullable SqlNode...  operands 
)
inline

Definition at line 961 of file HeavyDBSqlOperatorTable.java.

963  {
964  assert functionQualifier == null;
965  switch (operands.length) {
966  case 2:
967  operands = new SqlNode[] {
968  operands[0], operands[1], SqlLiteral.createCharString("", pos)};
969  break;
970  case 3:
971  break;
972  default:
973  throw new IllegalArgumentException(
974  "Invalid operand count " + Arrays.toString(operands));
975  }
976  return super.createCall(functionQualifier, pos, operands);
977  }
static java.util.List<SqlTypeFamily> com.mapd.calcite.parser.HeavyDBSqlOperatorTable.Replace.getSignatureFamilies ( )
inlinestaticprivate

Definition at line 946 of file HeavyDBSqlOperatorTable.java.

References heavydb.dtypes.STRING.

946  {
947  java.util.ArrayList<SqlTypeFamily> families =
948  new java.util.ArrayList<SqlTypeFamily>();
949  families.add(SqlTypeFamily.STRING);
950  families.add(SqlTypeFamily.STRING);
951  families.add(SqlTypeFamily.STRING);
952  return families;
953  }
tuple STRING
Definition: dtypes.py:31
RelDataType com.mapd.calcite.parser.HeavyDBSqlOperatorTable.Replace.inferReturnType ( SqlOperatorBinding  opBinding)
inline

Definition at line 956 of file HeavyDBSqlOperatorTable.java.

956  {
957  return opBinding.getOperandType(0);
958  }

The documentation for this class was generated from the following file: