Class WindowAggregateQueryOperation
- java.lang.Object
-
- org.apache.flink.table.operations.WindowAggregateQueryOperation
-
- All Implemented Interfaces:
Operation
,QueryOperation
@Internal public class WindowAggregateQueryOperation extends Object implements QueryOperation
Relational operation that performs computations on top of subsets of input rows grouped by key and group window. It differs fromAggregateQueryOperation
by the group window.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
WindowAggregateQueryOperation.ResolvedGroupWindow
Wrapper for resolved expressions of aGroupWindow
.
-
Constructor Summary
Constructors Constructor Description WindowAggregateQueryOperation(List<ResolvedExpression> groupingExpressions, List<ResolvedExpression> aggregateExpressions, List<ResolvedExpression> windowPropertiesExpressions, WindowAggregateQueryOperation.ResolvedGroupWindow groupWindow, QueryOperation child, ResolvedSchema resolvedSchema)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description <T> T
accept(QueryOperationVisitor<T> visitor)
String
asSerializableString()
Returns a string that fully serializes this instance.String
asSummaryString()
Returns a string that summarizes this operation for printing to a console.List<ResolvedExpression>
getAggregateExpressions()
List<QueryOperation>
getChildren()
List<ResolvedExpression>
getGroupingExpressions()
WindowAggregateQueryOperation.ResolvedGroupWindow
getGroupWindow()
ResolvedSchema
getResolvedSchema()
Resolved schema of this operation.List<ResolvedExpression>
getWindowPropertiesExpressions()
-
-
-
Constructor Detail
-
WindowAggregateQueryOperation
public WindowAggregateQueryOperation(List<ResolvedExpression> groupingExpressions, List<ResolvedExpression> aggregateExpressions, List<ResolvedExpression> windowPropertiesExpressions, WindowAggregateQueryOperation.ResolvedGroupWindow groupWindow, QueryOperation child, ResolvedSchema resolvedSchema)
-
-
Method Detail
-
getResolvedSchema
public ResolvedSchema getResolvedSchema()
Description copied from interface:QueryOperation
Resolved schema of this operation.- Specified by:
getResolvedSchema
in interfaceQueryOperation
-
asSummaryString
public String asSummaryString()
Description copied from interface:Operation
Returns a string that summarizes this operation for printing to a console. An implementation might skip very specific properties.- Specified by:
asSummaryString
in interfaceOperation
- Returns:
- summary string of this operation for debugging purposes
-
asSerializableString
public String asSerializableString()
Description copied from interface:QueryOperation
Returns a string that fully serializes this instance. The serialized string can be used for storing the query in e.g. aCatalog
as a view.- Specified by:
asSerializableString
in interfaceQueryOperation
- Returns:
- detailed string for persisting in a catalog
- See Also:
Operation.asSummaryString()
-
getGroupingExpressions
public List<ResolvedExpression> getGroupingExpressions()
-
getAggregateExpressions
public List<ResolvedExpression> getAggregateExpressions()
-
getWindowPropertiesExpressions
public List<ResolvedExpression> getWindowPropertiesExpressions()
-
getGroupWindow
public WindowAggregateQueryOperation.ResolvedGroupWindow getGroupWindow()
-
getChildren
public List<QueryOperation> getChildren()
- Specified by:
getChildren
in interfaceQueryOperation
-
accept
public <T> T accept(QueryOperationVisitor<T> visitor)
- Specified by:
accept
in interfaceQueryOperation
-
-