OmniSciDB  b24e664e58
 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 1366 of file MapDSqlOperatorTable.java.

Constructor & Destructor Documentation

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

Definition at line 1367 of file MapDSqlOperatorTable.java.

1367  {
1368  super("APPROX_COUNT_DISTINCT",
1369  null,
1370  SqlKind.OTHER_FUNCTION,
1371  null,
1372  null,
1373  OperandTypes.or(OperandTypes.family(SqlTypeFamily.ANY),
1374  OperandTypes.family(SqlTypeFamily.ANY, SqlTypeFamily.INTEGER)),
1375  SqlFunctionCategory.SYSTEM);
1376  }

Member Function Documentation

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

Definition at line 1379 of file MapDSqlOperatorTable.java.

1379  {
1380  final RelDataTypeFactory typeFactory = opBinding.getTypeFactory();
1381  return typeFactory.createSqlType(SqlTypeName.BIGINT);
1382  }

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