T - The type of the evaluated expressionpublic class WindowExpression<T> extends Expression<T>
Expression{T}
^ ^
| |
WindowExpression{T} AggregationFunction{T}
^ ^ {I} WindowableFunction{T} .over()
| | ^ ^
NonWindowableAggregationFunction{T} WindowableAggregationFunction{T}.....: :.....AnalyticFunction{T}
^ ^ ^ ^ ^
| | | | |
| NumericAggregationFunction StringAggregationFunction PositionalAnalyticFunction{?} |
| ^ ^ ^ |
|- Count |- Sum |- GroupConcat |- Lead |- RowNumber
|- CountDistinct |- Avg |- Lag |- Rank
|- SumDistinct |- Min |- DenseRank
|- AvgDistinct |- Max |- NTile
|- GroupConcatDistinct
SQL.sum(a.salary) -- WindowableFunction .over()
.over() -- WindowFunctionOverStage{T} .partitionBy() .orderBy() .end()
.partitionBy(expression...) -- WindowFunctionPartitioningStage{T} .orderBy() .end()
.orderBy(expression...) -- WindowFunctionOrderingStage{T} .end()
.end() -- Expression{T}
| Modifier and Type | Class and Description |
|---|---|
static class |
WindowExpression.FrameBound |
static class |
WindowExpression.FrameExclusion |
static class |
WindowExpression.FrameUnit |
PRECEDENCE_AND, PRECEDENCE_ANY_ALL_EQ_NE_LT_LE_GT_GE, PRECEDENCE_BETWEEN, PRECEDENCE_CASE, PRECEDENCE_COLUMN, PRECEDENCE_EQ_NE_LT_LE_GT_GE, PRECEDENCE_EXISTS, PRECEDENCE_FUNCTION, PRECEDENCE_IN, PRECEDENCE_IS_NULL, PRECEDENCE_LIKE, PRECEDENCE_LITERAL, PRECEDENCE_MULT_DIV_MOD, PRECEDENCE_NOT, PRECEDENCE_OR, PRECEDENCE_PARENTHESIS, PRECEDENCE_PLUS_MINUS, PRECEDENCE_TUPLE, PRECEDENCE_UNARY_MINUS| Constructor and Description |
|---|
WindowExpression(WindowableFunction<T> windowablefunction) |
| Modifier and Type | Method and Description |
|---|---|
void |
designateAliases(AbstractSelect.AliasGenerator ag) |
void |
renderTo(QueryWriter w) |
void |
validateTableReferences(AbstractSelect.TableReferences tableReferences,
AbstractSelect.AliasGenerator ag) |
as, asc, between, between, between, between, desc, eq, eq, eqAll, eqAny, ge, ge, geAll, geAny, getPrecedence, gt, gt, gtAll, gtAny, in, in, in, isNotNull, isNull, le, le, leAll, leAny, lt, lt, ltAll, ltAny, ne, ne, neAll, neAny, notBetween, notBetween, notBetween, notBetween, notIn, notIn, notIn, renderInner, setPrecedencepublic WindowExpression(WindowableFunction<T> windowablefunction)
public void renderTo(QueryWriter w)
renderTo in interface ResultSetColumnrenderTo in class Expression<T>public void validateTableReferences(AbstractSelect.TableReferences tableReferences, AbstractSelect.AliasGenerator ag)
validateTableReferences in class Expression<T>public void designateAliases(AbstractSelect.AliasGenerator ag)
designateAliases in class Expression<T>