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

Public Member Functions

 WidthBucket ()
 
RelDataType inferReturnType (SqlOperatorBinding opBinding)
 

Static Private Member Functions

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

Detailed Description

Definition at line 644 of file MapDSqlOperatorTable.java.

Constructor & Destructor Documentation

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

Definition at line 645 of file MapDSqlOperatorTable.java.

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

645  {
646  super("WIDTH_BUCKET",
647  SqlKind.OTHER_FUNCTION,
648  null,
649  null,
650  OperandTypes.family(signature()),
651  SqlFunctionCategory.SYSTEM);
652  }

+ Here is the call graph for this function:

Member Function Documentation

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

Definition at line 655 of file MapDSqlOperatorTable.java.

References INTEGER.

655  {
656  final RelDataTypeFactory typeFactory = opBinding.getTypeFactory();
657  return typeFactory.createTypeWithNullability(
658  typeFactory.createSqlType(SqlTypeName.INTEGER), /*nullable=*/true);
659  }
#define INTEGER
static java.util.List<SqlTypeFamily> com.mapd.calcite.parser.MapDSqlOperatorTable.WidthBucket.signature ( )
inlinestaticprivate

Definition at line 661 of file MapDSqlOperatorTable.java.

References INTEGER, and NUMERIC.

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

661  {
662  java.util.ArrayList<SqlTypeFamily> families =
663  new java.util.ArrayList<SqlTypeFamily>();
664  families.add(SqlTypeFamily.NUMERIC);
665  families.add(SqlTypeFamily.NUMERIC);
666  families.add(SqlTypeFamily.NUMERIC);
667  families.add(SqlTypeFamily.INTEGER);
668  return families;
669  }
#define NUMERIC
#define INTEGER

+ Here is the caller graph for this function:


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