OmniSciDB  e465130ba1
 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 1455 of file MapDSqlOperatorTable.java.

Constructor & Destructor Documentation

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

Definition at line 1456 of file MapDSqlOperatorTable.java.

1456  {
1457  super("APPROX_COUNT_DISTINCT",
1458  null,
1459  SqlKind.OTHER_FUNCTION,
1460  null,
1461  null,
1462  OperandTypes.or(OperandTypes.family(SqlTypeFamily.ANY),
1463  OperandTypes.family(SqlTypeFamily.ANY, SqlTypeFamily.INTEGER)),
1464  SqlFunctionCategory.SYSTEM);
1465  }

Member Function Documentation

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

Definition at line 1468 of file MapDSqlOperatorTable.java.

1468  {
1469  final RelDataTypeFactory typeFactory = opBinding.getTypeFactory();
1470  return typeFactory.createSqlType(SqlTypeName.BIGINT);
1471  }

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