OmniSciDB  a987f07e93
 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 700 of file HeavyDBSqlOperatorTable.java.

Constructor & Destructor Documentation

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

Definition at line 701 of file HeavyDBSqlOperatorTable.java.

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

701  {
702  super("WIDTH_BUCKET",
703  SqlKind.OTHER_FUNCTION,
704  null,
705  null,
706  OperandTypes.family(signature()),
707  SqlFunctionCategory.SYSTEM);
708  }

+ 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 711 of file HeavyDBSqlOperatorTable.java.

711  {
712  final RelDataTypeFactory typeFactory = opBinding.getTypeFactory();
713  return typeFactory.createTypeWithNullability(
714  typeFactory.createSqlType(SqlTypeName.INTEGER), /*nullable=*/true);
715  }
static java.util.List<SqlTypeFamily> com.mapd.calcite.parser.HeavyDBSqlOperatorTable.WidthBucket.signature ( )
inlinestaticprivate

Definition at line 717 of file HeavyDBSqlOperatorTable.java.

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

717  {
718  java.util.ArrayList<SqlTypeFamily> families =
719  new java.util.ArrayList<SqlTypeFamily>();
720  families.add(SqlTypeFamily.NUMERIC);
721  families.add(SqlTypeFamily.NUMERIC);
722  families.add(SqlTypeFamily.NUMERIC);
723  families.add(SqlTypeFamily.INTEGER);
724  return families;
725  }

+ Here is the caller graph for this function:


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