OmniSciDB  c07336695a
com.mapd.calcite.parser.MapDSqlOperatorTable.KeyForString Class Reference
+ Inheritance diagram for com.mapd.calcite.parser.MapDSqlOperatorTable.KeyForString:
+ Collaboration diagram for com.mapd.calcite.parser.MapDSqlOperatorTable.KeyForString:

Public Member Functions

 KeyForString ()
 
RelDataType inferReturnType (SqlOperatorBinding opBinding)
 

Detailed Description

Definition at line 539 of file MapDSqlOperatorTable.java.

Constructor & Destructor Documentation

◆ KeyForString()

com.mapd.calcite.parser.MapDSqlOperatorTable.KeyForString.KeyForString ( )
inline

Definition at line 540 of file MapDSqlOperatorTable.java.

540  {
541  super("KEY_FOR_STRING",
542  SqlKind.OTHER_FUNCTION,
543  null,
544  null,
545  OperandTypes.STRING,
546  SqlFunctionCategory.SYSTEM);
547  }

Member Function Documentation

◆ inferReturnType()

RelDataType com.mapd.calcite.parser.MapDSqlOperatorTable.KeyForString.inferReturnType ( SqlOperatorBinding  opBinding)
inline

Definition at line 550 of file MapDSqlOperatorTable.java.

550  {
551  final RelDataTypeFactory typeFactory = opBinding.getTypeFactory();
552  return typeFactory.createTypeWithNullability(
553  typeFactory.createSqlType(SqlTypeName.INTEGER),
554  opBinding.getOperandType(0).isNullable());
555  }

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