public class SqlLeadLagAggFunction extends SqlAggFunction
LEAD
and LAG
aggregate functions
return the value of given expression evaluated at given offset.Modifier and Type | Field and Description |
---|---|
private static SqlSingleOperandTypeChecker |
OPERAND_TYPES |
private static SqlReturnTypeInference |
RETURN_TYPE |
kind, MDX_PRECEDENCE, NL
Constructor and Description |
---|
SqlLeadLagAggFunction(boolean isLead)
Deprecated.
|
SqlLeadLagAggFunction(SqlKind kind) |
Modifier and Type | Method and Description |
---|---|
boolean |
allowsFraming()
Returns whether this is a window function that allows framing (i.e.
|
boolean |
allowsNullTreatment()
Returns whether this aggregate function allows specifying null treatment
(
RESPECT NULLS or IGNORE NULLS ). |
allowsFilter, getParameterTypes, getReturnType, isAggregator, isQuantifierAllowed, requiresGroupOrder, requiresOrder, requiresOver, unwrap, validateCall
deriveType, getFunctionType, getNameAsId, getParamNames, getParamTypes, getSqlIdentifier, getSyntax, unparse, validateQuantifier
acceptCall, acceptCall, adjustType, 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, validRexOperands
private static final SqlSingleOperandTypeChecker OPERAND_TYPES
private static final SqlReturnTypeInference RETURN_TYPE
public SqlLeadLagAggFunction(SqlKind kind)
@Deprecated public SqlLeadLagAggFunction(boolean isLead)
public boolean allowsFraming()
SqlOperator
allowsFraming
in class SqlOperator
public boolean allowsNullTreatment()
SqlAggFunction
RESPECT NULLS
or IGNORE NULLS
).allowsNullTreatment
in class SqlAggFunction
Copyright © 2012–2019 The Apache Software Foundation. All rights reserved.