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

Public Member Functions

RelDataType inferReturnType (SqlOperatorBinding opBinding)
 

Package Functions

 ApproxCountDistinct ()
 

Detailed Description

Definition at line 1705 of file MapDSqlOperatorTable.java.

Constructor & Destructor Documentation

com.mapd.calcite.parser.MapDSqlOperatorTable.ApproxCountDistinct.ApproxCountDistinct ( )
inlinepackage

Definition at line 1706 of file MapDSqlOperatorTable.java.

References ANY, and INTEGER.

1706  {
1707  super("APPROX_COUNT_DISTINCT",
1708  null,
1709  SqlKind.OTHER_FUNCTION,
1710  null,
1711  null,
1712  OperandTypes.or(OperandTypes.family(SqlTypeFamily.ANY),
1713  OperandTypes.family(SqlTypeFamily.ANY, SqlTypeFamily.INTEGER)),
1714  SqlFunctionCategory.SYSTEM,
1715  false,
1716  false,
1717  Optionality.FORBIDDEN);
1718  }
#define ANY
#define INTEGER

Member Function Documentation

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

Definition at line 1721 of file MapDSqlOperatorTable.java.

References BIGINT.

1721  {
1722  final RelDataTypeFactory typeFactory = opBinding.getTypeFactory();
1723  return typeFactory.createSqlType(SqlTypeName.BIGINT);
1724  }
#define BIGINT

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