public class SqlFirstLastValueAggFunction
extends org.apache.calcite.sql.SqlAggFunction
FIRST_VALUE and LAST_VALUE aggregate functions return the first or the
last value in a list of values that are input to the function.
NOTE: The difference between this and SqlFirstLastValueAggFunction is that this can be used without over
clause.
| Constructor and Description |
|---|
SqlFirstLastValueAggFunction(org.apache.calcite.sql.SqlKind kind) |
| Modifier and Type | Method and Description |
|---|---|
List<org.apache.calcite.rel.type.RelDataType> |
getParameterTypes(org.apache.calcite.rel.type.RelDataTypeFactory typeFactory) |
org.apache.calcite.rel.type.RelDataType |
getReturnType(org.apache.calcite.rel.type.RelDataTypeFactory typeFactory) |
allowsFilter, allowsNullTreatment, getDistinctOptionality, isAggregator, isQuantifierAllowed, requiresGroupOrder, requiresOrder, requiresOver, unwrap, 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, getStrongPolicyInference, hashCode, inferReturnType, inferReturnType, isDeterministic, isDynamicFunction, isGroup, isGroupAuxiliary, isName, isSymmetrical, leftPrec, preValidateCall, requiresDecimalExpansion, rewriteCall, rightPrec, toString, unparseListClause, unparseListClause, validateOperands, validRexOperandspublic SqlFirstLastValueAggFunction(org.apache.calcite.sql.SqlKind kind)
public List<org.apache.calcite.rel.type.RelDataType> getParameterTypes(org.apache.calcite.rel.type.RelDataTypeFactory typeFactory)
getParameterTypes in class org.apache.calcite.sql.SqlAggFunctionpublic org.apache.calcite.rel.type.RelDataType getReturnType(org.apache.calcite.rel.type.RelDataTypeFactory typeFactory)
getReturnType in class org.apache.calcite.sql.SqlAggFunctionCopyright © 2014–2021 The Apache Software Foundation. All rights reserved.