OmniSciDB  29e35f4d58
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 600 of file MapDSqlOperatorTable.java.

Constructor & Destructor Documentation

◆ KeyForString()

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

Definition at line 601 of file MapDSqlOperatorTable.java.

601  {
602  super("KEY_FOR_STRING",
603  SqlKind.OTHER_FUNCTION,
604  null,
605  null,
606  OperandTypes.STRING,
607  SqlFunctionCategory.SYSTEM);
608  }

Member Function Documentation

◆ inferReturnType()

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

Definition at line 611 of file MapDSqlOperatorTable.java.

611  {
612  final RelDataTypeFactory typeFactory = opBinding.getTypeFactory();
613  return typeFactory.createTypeWithNullability(
614  typeFactory.createSqlType(SqlTypeName.INTEGER),
615  opBinding.getOperandType(0).isNullable());
616  }

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