OmniSciDB  f632821e96
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 1712 of file MapDSqlOperatorTable.java.

Constructor & Destructor Documentation

◆ MapDAvg()

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

Definition at line 1713 of file MapDSqlOperatorTable.java.

1713  {
1714  super("AVG",
1715  null,
1716  SqlKind.OTHER_FUNCTION,
1717  null,
1718  null,
1719  OperandTypes.family(SqlTypeFamily.NUMERIC),
1720  SqlFunctionCategory.SYSTEM);
1721  }

Member Function Documentation

◆ inferReturnType()

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

Definition at line 1724 of file MapDSqlOperatorTable.java.

1724  {
1725  final RelDataTypeFactory typeFactory = opBinding.getTypeFactory();
1726  return typeFactory.createSqlType(SqlTypeName.DOUBLE);
1727  }

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