OmniSciDB  085a039ca4
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
com.mapd.calcite.parser.HeavyDBSqlOperatorTable.WidthBucket Class Reference
+ Inheritance diagram for com.mapd.calcite.parser.HeavyDBSqlOperatorTable.WidthBucket:
+ Collaboration diagram for com.mapd.calcite.parser.HeavyDBSqlOperatorTable.WidthBucket:

Public Member Functions

 WidthBucket ()
 
RelDataType inferReturnType (SqlOperatorBinding opBinding)
 

Static Private Member Functions

static java.util.List
< SqlTypeFamily > 
signature ()
 

Detailed Description

Definition at line 669 of file HeavyDBSqlOperatorTable.java.

Constructor & Destructor Documentation

com.mapd.calcite.parser.HeavyDBSqlOperatorTable.WidthBucket.WidthBucket ( )
inline

Definition at line 670 of file HeavyDBSqlOperatorTable.java.

References com.mapd.calcite.parser.HeavyDBSqlOperatorTable.WidthBucket.signature().

670  {
671  super("WIDTH_BUCKET",
672  SqlKind.OTHER_FUNCTION,
673  null,
674  null,
675  OperandTypes.family(signature()),
676  SqlFunctionCategory.SYSTEM);
677  }

+ Here is the call graph for this function:

Member Function Documentation

RelDataType com.mapd.calcite.parser.HeavyDBSqlOperatorTable.WidthBucket.inferReturnType ( SqlOperatorBinding  opBinding)
inline

Definition at line 680 of file HeavyDBSqlOperatorTable.java.

680  {
681  final RelDataTypeFactory typeFactory = opBinding.getTypeFactory();
682  return typeFactory.createTypeWithNullability(
683  typeFactory.createSqlType(SqlTypeName.INTEGER), /*nullable=*/true);
684  }
static java.util.List<SqlTypeFamily> com.mapd.calcite.parser.HeavyDBSqlOperatorTable.WidthBucket.signature ( )
inlinestaticprivate

Definition at line 686 of file HeavyDBSqlOperatorTable.java.

Referenced by com.mapd.calcite.parser.HeavyDBSqlOperatorTable.WidthBucket.WidthBucket().

686  {
687  java.util.ArrayList<SqlTypeFamily> families =
688  new java.util.ArrayList<SqlTypeFamily>();
689  families.add(SqlTypeFamily.NUMERIC);
690  families.add(SqlTypeFamily.NUMERIC);
691  families.add(SqlTypeFamily.NUMERIC);
692  families.add(SqlTypeFamily.INTEGER);
693  return families;
694  }

+ Here is the caller graph for this function:


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