OmniSciDB  a5dc49c757
 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 726 of file HeavyDBSqlOperatorTable.java.

Constructor & Destructor Documentation

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

Definition at line 727 of file HeavyDBSqlOperatorTable.java.

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

727  {
728  super("WIDTH_BUCKET",
729  SqlKind.OTHER_FUNCTION,
730  null,
731  null,
732  OperandTypes.family(signature()),
733  SqlFunctionCategory.SYSTEM);
734  }

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

737  {
738  final RelDataTypeFactory typeFactory = opBinding.getTypeFactory();
739  return typeFactory.createTypeWithNullability(
740  typeFactory.createSqlType(SqlTypeName.INTEGER), /*nullable=*/true);
741  }
static java.util.List<SqlTypeFamily> com.mapd.calcite.parser.HeavyDBSqlOperatorTable.WidthBucket.signature ( )
inlinestaticprivate

Definition at line 743 of file HeavyDBSqlOperatorTable.java.

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

743  {
744  java.util.ArrayList<SqlTypeFamily> families =
745  new java.util.ArrayList<SqlTypeFamily>();
746  families.add(SqlTypeFamily.NUMERIC);
747  families.add(SqlTypeFamily.NUMERIC);
748  families.add(SqlTypeFamily.NUMERIC);
749  families.add(SqlTypeFamily.INTEGER);
750  return families;
751  }

+ Here is the caller graph for this function:


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