OmniSciDB  addbbd5075
 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 1414 of file MapDSqlOperatorTable.java.

Constructor & Destructor Documentation

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

Definition at line 1415 of file MapDSqlOperatorTable.java.

1415  {
1416  super("AVG",
1417  null,
1418  SqlKind.OTHER_FUNCTION,
1419  null,
1420  null,
1421  OperandTypes.family(SqlTypeFamily.NUMERIC),
1422  SqlFunctionCategory.SYSTEM);
1423  }

Member Function Documentation

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

Definition at line 1426 of file MapDSqlOperatorTable.java.

1426  {
1427  final RelDataTypeFactory typeFactory = opBinding.getTypeFactory();
1428  return typeFactory.createSqlType(SqlTypeName.DOUBLE);
1429  }

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