org.eigenbase.sql.fun
Class SqlHistogramAggFunction
java.lang.Object
org.eigenbase.sql.SqlOperator
org.eigenbase.sql.SqlFunction
org.eigenbase.sql.SqlAggFunction
org.eigenbase.sql.fun.SqlHistogramAggFunction
- All Implemented Interfaces:
- Aggregation
public class SqlHistogramAggFunction
- extends SqlAggFunction
HistogramAgg is base operator which supports the Histogram
MIN/MAX aggregatoin functions. which returns the sum of the values which go
into it. It has precisely one argument of numeric type (int,
long, float, double) results are
retrived with (HistogramMin) and (HistogramMax)
- Version:
- $Id: //open/dev/farrago/src/org/eigenbase/sql/fun/SqlHistogramAggFunction.java#6 $
- Author:
- jfrost
| Methods inherited from class org.eigenbase.sql.SqlOperator |
acceptCall, acceptCall, adjustType, argumentMustBeScalar, checkOperandCount, checkOperandTypes, createCall, createCall, createCall, createCall, equals, getAllowedSignatures, getAllowedSignatures, getKind, getLeftPrec, getMonotonicity, getName, getOperandCountRange, getOperandTypeChecker, getOperandTypeInference, getReturnTypeInference, getRightPrec, getSignatureTemplate, hashCode, inferReturnType, inferReturnType, isAggregator, isDeterministic, isDynamicFunction, isName, leftPrec, preValidateCall, requiresDecimalExpansion, rewriteCall, rightPrec, toString, unparseListClause, unparseListClause, validateOperands |
type
private final RelDataType type
SqlHistogramAggFunction
public SqlHistogramAggFunction(RelDataType type)
getParameterTypes
public RelDataType[] getParameterTypes(RelDataTypeFactory typeFactory)
- Description copied from interface:
Aggregation
- Returns the parameter types accepted by this Aggregation.
- Parameters:
typeFactory - Type factory to create the types
- Returns:
- Array of parameter types
getType
public RelDataType getType()
getReturnType
public RelDataType getReturnType(RelDataTypeFactory typeFactory)
- Description copied from interface:
Aggregation
- Returns the type of the result yielded by this Aggregation.
- Parameters:
typeFactory - Type factory to create the type
- Returns:
- Result type
getStartParameterTypes
public OJClass[] getStartParameterTypes()
- Overrides:
getStartParameterTypes in class SqlAggFunction