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 fromAggregateQueryOperationby the group window.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classWindowAggregateQueryOperation.ResolvedGroupWindowWrapper for resolved expressions of aGroupWindow.
-
Constructor Summary
Constructors Constructor Description WindowAggregateQueryOperation(List<org.apache.flink.table.expressions.ResolvedExpression> groupingExpressions, List<org.apache.flink.table.expressions.ResolvedExpression> aggregateExpressions, List<org.apache.flink.table.expressions.ResolvedExpression> windowPropertiesExpressions, WindowAggregateQueryOperation.ResolvedGroupWindow groupWindow, QueryOperation child, org.apache.flink.table.catalog.ResolvedSchema resolvedSchema)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description <T> Taccept(QueryOperationVisitor<T> visitor)StringasSerializableString(org.apache.flink.table.expressions.SqlFactory sqlFactory)Returns a SQL string that fully serializes this instance.StringasSummaryString()Returns a string that summarizes this operation for printing to a console.List<org.apache.flink.table.expressions.ResolvedExpression>getAggregateExpressions()List<QueryOperation>getChildren()List<org.apache.flink.table.expressions.ResolvedExpression>getGroupingExpressions()WindowAggregateQueryOperation.ResolvedGroupWindowgetGroupWindow()org.apache.flink.table.catalog.ResolvedSchemagetResolvedSchema()Resolved schema of this operation.List<org.apache.flink.table.expressions.ResolvedExpression>getWindowPropertiesExpressions()-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.apache.flink.table.operations.QueryOperation
asSerializableString
-
-
-
-
Constructor Detail
-
WindowAggregateQueryOperation
public WindowAggregateQueryOperation(List<org.apache.flink.table.expressions.ResolvedExpression> groupingExpressions, List<org.apache.flink.table.expressions.ResolvedExpression> aggregateExpressions, List<org.apache.flink.table.expressions.ResolvedExpression> windowPropertiesExpressions, WindowAggregateQueryOperation.ResolvedGroupWindow groupWindow, QueryOperation child, org.apache.flink.table.catalog.ResolvedSchema resolvedSchema)
-
-
Method Detail
-
getResolvedSchema
public org.apache.flink.table.catalog.ResolvedSchema getResolvedSchema()
Description copied from interface:QueryOperationResolved schema of this operation.- Specified by:
getResolvedSchemain interfaceQueryOperation
-
asSummaryString
public String asSummaryString()
Description copied from interface:OperationReturns a string that summarizes this operation for printing to a console. An implementation might skip very specific properties.- Specified by:
asSummaryStringin interfaceOperation- Returns:
- summary string of this operation for debugging purposes
-
asSerializableString
public String asSerializableString(org.apache.flink.table.expressions.SqlFactory sqlFactory)
Description copied from interface:QueryOperationReturns a SQL string that fully serializes this instance. The serialized string can be used for storing the query in e.g. aCatalogas a view.- Specified by:
asSerializableStringin interfaceQueryOperation- Parameters:
sqlFactory- can be used to customize the serialization to a SQL string- Returns:
- Flink SQL string for persisting in a catalog
- See Also:
Operation.asSummaryString(),EnvironmentSettings.Builder.withSqlFactory(SqlFactory)
-
getGroupingExpressions
public List<org.apache.flink.table.expressions.ResolvedExpression> getGroupingExpressions()
-
getAggregateExpressions
public List<org.apache.flink.table.expressions.ResolvedExpression> getAggregateExpressions()
-
getWindowPropertiesExpressions
public List<org.apache.flink.table.expressions.ResolvedExpression> getWindowPropertiesExpressions()
-
getGroupWindow
public WindowAggregateQueryOperation.ResolvedGroupWindow getGroupWindow()
-
getChildren
public List<QueryOperation> getChildren()
- Specified by:
getChildrenin interfaceQueryOperation
-
accept
public <T> T accept(QueryOperationVisitor<T> visitor)
- Specified by:
acceptin interfaceQueryOperation
-
-