OmniSciDB  471d68cefb
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups 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 1765 of file MapDSqlOperatorTable.java.

Constructor & Destructor Documentation

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

Definition at line 1766 of file MapDSqlOperatorTable.java.

References ANY, and INTEGER.

1766  {
1767  super("APPROX_COUNT_DISTINCT",
1768  null,
1769  SqlKind.OTHER_FUNCTION,
1770  null,
1771  null,
1772  OperandTypes.or(OperandTypes.family(SqlTypeFamily.ANY),
1773  OperandTypes.family(SqlTypeFamily.ANY, SqlTypeFamily.INTEGER)),
1774  SqlFunctionCategory.SYSTEM,
1775  false,
1776  false,
1777  Optionality.FORBIDDEN);
1778  }
#define ANY
#define INTEGER

Member Function Documentation

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

Definition at line 1781 of file MapDSqlOperatorTable.java.

References BIGINT.

1781  {
1782  final RelDataTypeFactory typeFactory = opBinding.getTypeFactory();
1783  return typeFactory.createSqlType(SqlTypeName.BIGINT);
1784  }
#define BIGINT

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