OmniSciDB  fe05a0c208
 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 595 of file MapDSqlOperatorTable.java.

Constructor & Destructor Documentation

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

Definition at line 596 of file MapDSqlOperatorTable.java.

596  {
597  super("KEY_FOR_STRING",
598  SqlKind.OTHER_FUNCTION,
599  null,
600  null,
601  OperandTypes.STRING,
602  SqlFunctionCategory.SYSTEM);
603  }

Member Function Documentation

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

Definition at line 606 of file MapDSqlOperatorTable.java.

References INTEGER.

606  {
607  final RelDataTypeFactory typeFactory = opBinding.getTypeFactory();
608  return typeFactory.createTypeWithNullability(
609  typeFactory.createSqlType(SqlTypeName.INTEGER),
610  opBinding.getOperandType(0).isNullable());
611  }
#define INTEGER

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