Package org.apache.calcite.sql.fun
Class SqlLeadLagAggFunction
- java.lang.Object
-
- org.apache.calcite.sql.SqlOperator
-
- org.apache.calcite.sql.SqlFunction
-
- org.apache.calcite.sql.SqlAggFunction
-
- org.apache.calcite.sql.fun.SqlLeadLagAggFunction
-
public class SqlLeadLagAggFunction extends SqlAggFunction
LEAD
andLAG
aggregate functions return the value of given expression evaluated at given offset.
-
-
Field Summary
Fields Modifier and Type Field Description private static SqlSingleOperandTypeChecker
OPERAND_TYPES
private static SqlReturnTypeInference
RETURN_TYPE
-
Fields inherited from class org.apache.calcite.sql.SqlOperator
kind, MDX_PRECEDENCE, NL
-
-
Constructor Summary
Constructors Constructor Description SqlLeadLagAggFunction(boolean isLead)
Deprecated.SqlLeadLagAggFunction(SqlKind kind)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
allowsFraming()
Returns whether this is a window function that allows framing (i.e.-
Methods inherited from class org.apache.calcite.sql.SqlAggFunction
allowsFilter, getParameterTypes, getReturnType, isAggregator, isQuantifierAllowed, requiresGroupOrder, requiresOrder, requiresOver, unwrap, validateCall
-
Methods inherited from class org.apache.calcite.sql.SqlFunction
deriveType, getFunctionType, getNameAsId, getParamNames, getParamTypes, getSqlIdentifier, getSyntax, unparse, validateQuantifier
-
Methods inherited from class org.apache.calcite.sql.SqlOperator
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
-
-
-
-
Field Detail
-
OPERAND_TYPES
private static final SqlSingleOperandTypeChecker OPERAND_TYPES
-
RETURN_TYPE
private static final SqlReturnTypeInference RETURN_TYPE
-
-
Constructor Detail
-
SqlLeadLagAggFunction
public SqlLeadLagAggFunction(SqlKind kind)
-
SqlLeadLagAggFunction
@Deprecated public SqlLeadLagAggFunction(boolean isLead)
Deprecated.
-
-
Method Detail
-
allowsFraming
public boolean allowsFraming()
Description copied from class:SqlOperator
Returns whether this is a window function that allows framing (i.e. a ROWS or RANGE clause in the window specification).- Overrides:
allowsFraming
in classSqlOperator
-
-