Class SortQueryOperation
java.lang.Object
org.apache.flink.table.operations.SortQueryOperation
- All Implemented Interfaces:
Operation,QueryOperation
Expresses sort operation of rows of the underlying relational operation with given order. It also
allows specifying offset and number of rows to fetch from the sorted data set/stream.
-
Constructor Summary
ConstructorsConstructorDescriptionSortQueryOperation(List<org.apache.flink.table.expressions.ResolvedExpression> order, QueryOperation child) SortQueryOperation(List<org.apache.flink.table.expressions.ResolvedExpression> order, QueryOperation child, int offset, int fetch) -
Method Summary
Modifier and TypeMethodDescription<T> Taccept(QueryOperationVisitor<T> visitor) Returns a string that fully serializes this instance.Returns a string that summarizes this operation for printing to a console.getChild()intgetFetch()intList<org.apache.flink.table.expressions.ResolvedExpression>getOrder()org.apache.flink.table.catalog.ResolvedSchemaResolved schema of this operation.
-
Constructor Details
-
SortQueryOperation
public SortQueryOperation(List<org.apache.flink.table.expressions.ResolvedExpression> order, QueryOperation child) -
SortQueryOperation
public SortQueryOperation(List<org.apache.flink.table.expressions.ResolvedExpression> order, QueryOperation child, int offset, int fetch)
-
-
Method Details
-
getOrder
-
getChild
-
getOffset
public int getOffset() -
getFetch
public int getFetch() -
getResolvedSchema
public org.apache.flink.table.catalog.ResolvedSchema getResolvedSchema()Description copied from interface:QueryOperationResolved schema of this operation.- Specified by:
getResolvedSchemain interfaceQueryOperation
-
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
Description copied from interface:QueryOperationReturns a 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- Returns:
- detailed string for persisting in a catalog
- See Also:
-
getChildren
- Specified by:
getChildrenin interfaceQueryOperation
-
accept
- Specified by:
acceptin interfaceQueryOperation
-