OmniSciDB  471d68cefb
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups 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 601 of file MapDSqlOperatorTable.java.

Constructor & Destructor Documentation

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

Definition at line 602 of file MapDSqlOperatorTable.java.

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

Member Function Documentation

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

Definition at line 612 of file MapDSqlOperatorTable.java.

References INTEGER.

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

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