OmniSciDB  49c0524acb
 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 1353 of file MapDSqlOperatorTable.java.

Constructor & Destructor Documentation

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

Definition at line 1354 of file MapDSqlOperatorTable.java.

1354  {
1355  super("AVG",
1356  null,
1357  SqlKind.OTHER_FUNCTION,
1358  null,
1359  null,
1360  OperandTypes.family(SqlTypeFamily.NUMERIC),
1361  SqlFunctionCategory.SYSTEM);
1362  }

Member Function Documentation

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

Definition at line 1365 of file MapDSqlOperatorTable.java.

1365  {
1366  final RelDataTypeFactory typeFactory = opBinding.getTypeFactory();
1367  return typeFactory.createSqlType(SqlTypeName.DOUBLE);
1368  }

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