OmniSciDB  1dac507f6e
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
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 571 of file MapDSqlOperatorTable.java.

Constructor & Destructor Documentation

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

Definition at line 572 of file MapDSqlOperatorTable.java.

572  {
573  super("KEY_FOR_STRING",
574  SqlKind.OTHER_FUNCTION,
575  null,
576  null,
577  OperandTypes.STRING,
578  SqlFunctionCategory.SYSTEM);
579  }

Member Function Documentation

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

Definition at line 582 of file MapDSqlOperatorTable.java.

582  {
583  final RelDataTypeFactory typeFactory = opBinding.getTypeFactory();
584  return typeFactory.createTypeWithNullability(
585  typeFactory.createSqlType(SqlTypeName.INTEGER),
586  opBinding.getOperandType(0).isNullable());
587  }

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