public class SqlMinMaxAggFunction extends SqlAggFunction
MIN and MAX aggregate functions,
returning the returns the smallest/largest of the values which go into it.
There are 3 forms:
Comparable)
Comparable.compareTo(T)
Comparator, Object)
Comparator.compare(T, T) method of the comparator is used
to compare pairs of objects. The comparator is a startup argument, and must
therefore be constant for the duration of the aggregation.
| Modifier and Type | Field and Description |
|---|---|
List<RelDataType> |
argTypes
Deprecated.
|
static int |
MINMAX_COMPARABLE |
static int |
MINMAX_COMPARATOR |
static int |
MINMAX_INVALID |
static int |
MINMAX_PRIMITIVE |
private int |
minMaxKind |
kind, MDX_PRECEDENCE, NL| Constructor and Description |
|---|
SqlMinMaxAggFunction(List<RelDataType> argTypes,
boolean isMin,
int minMaxKind)
Deprecated.
|
SqlMinMaxAggFunction(SqlKind kind)
Creates a SqlMinMaxAggFunction.
|
| Modifier and Type | Method and Description |
|---|---|
int |
getMinMaxKind()
Deprecated.
|
List<RelDataType> |
getParameterTypes(RelDataTypeFactory typeFactory) |
RelDataType |
getReturnType(RelDataTypeFactory typeFactory) |
boolean |
isMin()
Deprecated.
|
<T> T |
unwrap(Class<T> clazz)
Finds an instance of an interface implemented by this object,
or returns null if this object does not support that interface.
|
allowsFilter, isAggregator, isQuantifierAllowed, requiresOrder, requiresOver, validateCallderiveType, getFunctionType, getNameAsId, getParamNames, getParamTypes, getSqlIdentifier, getSyntax, unparse, validateQuantifieracceptCall, acceptCall, adjustType, allowsFraming, argumentMustBeScalar, checkOperandCount, checkOperandTypes, constructArgNameList, constructArgTypeList, constructOperandList, createCall, createCall, createCall, createCall, equals, getAllowedSignatures, getAllowedSignatures, getKind, getLeftPrec, getMonotonicity, getMonotonicity, getName, getOperandCountRange, getOperandTypeChecker, getOperandTypeInference, getReturnTypeInference, getRightPrec, getSignatureTemplate, hashCode, inferReturnType, inferReturnType, isDeterministic, isDynamicFunction, isGroup, isGroupAuxiliary, isName, leftPrec, preValidateCall, requiresDecimalExpansion, rewriteCall, rightPrec, toString, unparseListClause, unparseListClause, validateOperands, validRexOperandspublic static final int MINMAX_INVALID
public static final int MINMAX_PRIMITIVE
public static final int MINMAX_COMPARABLE
public static final int MINMAX_COMPARATOR
@Deprecated public final List<RelDataType> argTypes
private final int minMaxKind
public SqlMinMaxAggFunction(SqlKind kind)
@Deprecated public SqlMinMaxAggFunction(List<RelDataType> argTypes, boolean isMin, int minMaxKind)
@Deprecated public boolean isMin()
@Deprecated public int getMinMaxKind()
public List<RelDataType> getParameterTypes(RelDataTypeFactory typeFactory)
getParameterTypes in class SqlAggFunctionpublic RelDataType getReturnType(RelDataTypeFactory typeFactory)
getReturnType in class SqlAggFunctionCopyright © 2012–2018 The Apache Software Foundation. All rights reserved.