OmniSciDB  baf940c279
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 712 of file MapDSqlOperatorTable.java.

Constructor & Destructor Documentation

◆ KeyForString()

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

Definition at line 713 of file MapDSqlOperatorTable.java.

713  {
714  super("KEY_FOR_STRING",
715  SqlKind.OTHER_FUNCTION,
716  null,
717  null,
718  OperandTypes.STRING,
719  SqlFunctionCategory.SYSTEM);
720  }

Member Function Documentation

◆ inferReturnType()

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

Definition at line 723 of file MapDSqlOperatorTable.java.

723  {
724  final RelDataTypeFactory typeFactory = opBinding.getTypeFactory();
725  return typeFactory.createTypeWithNullability(
726  typeFactory.createSqlType(SqlTypeName.INTEGER),
727  opBinding.getOperandType(0).isNullable());
728  }

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