OmniSciDB  bf83d84833
 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 1957 of file MapDSqlOperatorTable.java.

Constructor & Destructor Documentation

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

Definition at line 1958 of file MapDSqlOperatorTable.java.

1958  {
1959  super("AVG",
1960  null,
1961  SqlKind.OTHER_FUNCTION,
1962  null,
1963  null,
1964  OperandTypes.family(SqlTypeFamily.NUMERIC),
1965  SqlFunctionCategory.SYSTEM);
1966  }

Member Function Documentation

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

Definition at line 1969 of file MapDSqlOperatorTable.java.

1969  {
1970  final RelDataTypeFactory typeFactory = opBinding.getTypeFactory();
1971  return typeFactory.createSqlType(SqlTypeName.DOUBLE);
1972  }

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