OmniSciDB  0fdbebe030
 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 1474 of file MapDSqlOperatorTable.java.

Constructor & Destructor Documentation

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

Definition at line 1475 of file MapDSqlOperatorTable.java.

1475  {
1476  super("AVG",
1477  null,
1478  SqlKind.OTHER_FUNCTION,
1479  null,
1480  null,
1481  OperandTypes.family(SqlTypeFamily.NUMERIC),
1482  SqlFunctionCategory.SYSTEM);
1483  }

Member Function Documentation

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

Definition at line 1486 of file MapDSqlOperatorTable.java.

1486  {
1487  final RelDataTypeFactory typeFactory = opBinding.getTypeFactory();
1488  return typeFactory.createSqlType(SqlTypeName.DOUBLE);
1489  }

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