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

Constructor & Destructor Documentation

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

Definition at line 1386 of file MapDSqlOperatorTable.java.

1386  {
1387  super("AVG",
1388  null,
1389  SqlKind.OTHER_FUNCTION,
1390  null,
1391  null,
1392  OperandTypes.family(SqlTypeFamily.NUMERIC),
1393  SqlFunctionCategory.SYSTEM);
1394  }

Member Function Documentation

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

Definition at line 1397 of file MapDSqlOperatorTable.java.

1397  {
1398  final RelDataTypeFactory typeFactory = opBinding.getTypeFactory();
1399  return typeFactory.createSqlType(SqlTypeName.DOUBLE);
1400  }

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