public static class WindowAggregationDefinition.Builder extends Object
Modifier and Type | Method and Description |
---|---|
WindowAggregationDefinition |
build()
Builds a WindowAggregationDefinition.
|
WindowAggregationDefinition.Builder |
following(String following)
Sets the following if window frame type is row or range .
|
WindowAggregationDefinition.Builder |
orderBy(Expression expression,
WindowAggregationDefinition.OrderBy orderBy)
Sets the list of expressions to perform order by to the specified expressions.
|
WindowAggregationDefinition.Builder |
orderBy(List<WindowAggregationDefinition.OrderByExpression> orderByExpressions)
Sets the list of expressions to perform order by to the specified list.
|
WindowAggregationDefinition.Builder |
partition(Expression... partitionExpressions)
Sets the list of expressions to perform partition to the specified expressions.
|
WindowAggregationDefinition.Builder |
partition(List<Expression> partitionExpressions)
Sets the list of expressions to perform partition to the specified list.
|
WindowAggregationDefinition.Builder |
preceding(String preceding)
Sets the preceding if window frame type is row or range .
|
WindowAggregationDefinition.Builder |
select(Map<String,Expression> selectExpressions)
Sets the list of expressions to select to the specified expressions.
|
WindowAggregationDefinition.Builder |
unboundedFollowing(boolean unboundedFollowing)
Sets unbounded Preceding if window frame type is row or range
|
WindowAggregationDefinition.Builder |
unboundedPreceding(boolean unboundedPreceding)
Sets unbounded Preceding if window frame type is row or range
|
WindowAggregationDefinition.Builder |
windowFrameType(WindowAggregationDefinition.WindowFrameType windowFrameType)
Any window frame type value is overwritten.
|
public WindowAggregationDefinition.Builder unboundedPreceding(@Nullable boolean unboundedPreceding)
unboundedPreceding
- valueWindowAggregationDefinition.Builder
with the currently built WindowAggregationDefinition
.public WindowAggregationDefinition.Builder unboundedFollowing(@Nullable boolean unboundedFollowing)
unboundedFollowing
- valueWindowAggregationDefinition.Builder
with the currently built WindowAggregationDefinition
.public WindowAggregationDefinition.Builder preceding(@Nullable String preceding)
preceding
- valueWindowAggregationDefinition.Builder
with the currently built WindowAggregationDefinition
.public WindowAggregationDefinition.Builder following(@Nullable String following)
following
- valueWindowAggregationDefinition.Builder
with the currently built WindowAggregationDefinition
.public WindowAggregationDefinition.Builder partition(List<Expression> partitionExpressions)
partitionExpressions
- list of Expression
s.WindowAggregationDefinition.Builder
with the currently built WindowAggregationDefinition
.public WindowAggregationDefinition.Builder orderBy(@Nullable List<WindowAggregationDefinition.OrderByExpression> orderByExpressions)
orderByExpressions
- list of Expression
s.WindowAggregationDefinition.Builder
with the currently built WindowAggregationDefinition
.public WindowAggregationDefinition.Builder partition(Expression... partitionExpressions)
partitionExpressions
- Expression
s.WindowAggregationDefinition.Builder
with the currently built WindowAggregationDefinition
.public WindowAggregationDefinition.Builder windowFrameType(WindowAggregationDefinition.WindowFrameType windowFrameType)
WindowAggregationDefinition.Builder
with the currently built WindowAggregationDefinition
.public WindowAggregationDefinition.Builder orderBy(Expression expression, WindowAggregationDefinition.OrderBy orderBy)
WindowAggregationDefinition.Builder
with the currently built WindowAggregationDefinition
.public WindowAggregationDefinition.Builder select(Map<String,Expression> selectExpressions)
selectExpressions
- to useWindowAggregationDefinition.Builder
with the currently built WindowAggregationDefinition
.public WindowAggregationDefinition build()
IllegalStateException
- in case the fields to select are not specified.Copyright © 2023 Cask Data, Inc. Licensed under the Apache License, Version 2.0.