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

Public Member Functions

RelDataType inferReturnType (SqlOperatorBinding opBinding)
 

Package Functions

 MapDAvg ()
 

Detailed Description

Definition at line 1748 of file MapDSqlOperatorTable.java.

Constructor & Destructor Documentation

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

Definition at line 1749 of file MapDSqlOperatorTable.java.

1749  {
1750  super("AVG",
1751  null,
1752  SqlKind.OTHER_FUNCTION,
1753  null,
1754  null,
1755  OperandTypes.family(SqlTypeFamily.NUMERIC),
1756  SqlFunctionCategory.SYSTEM);
1757  }

Member Function Documentation

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

Definition at line 1760 of file MapDSqlOperatorTable.java.

References DOUBLE.

1760  {
1761  final RelDataTypeFactory typeFactory = opBinding.getTypeFactory();
1762  return typeFactory.createSqlType(SqlTypeName.DOUBLE);
1763  }
#define DOUBLE

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