Class SortQueryOperation
- java.lang.Object
-
- org.apache.flink.table.operations.SortQueryOperation
-
- All Implemented Interfaces:
Operation
,QueryOperation
@Internal public class SortQueryOperation extends Object implements 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
Constructors Constructor Description SortQueryOperation(List<ResolvedExpression> order, QueryOperation child)
SortQueryOperation(List<ResolvedExpression> order, QueryOperation child, int offset, int fetch)
-
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.QueryOperation
getChild()
List<QueryOperation>
getChildren()
int
getFetch()
int
getOffset()
List<ResolvedExpression>
getOrder()
ResolvedSchema
getResolvedSchema()
Resolved schema of this operation.
-
-
-
Constructor Detail
-
SortQueryOperation
public SortQueryOperation(List<ResolvedExpression> order, QueryOperation child)
-
SortQueryOperation
public SortQueryOperation(List<ResolvedExpression> order, QueryOperation child, int offset, int fetch)
-
-
Method Detail
-
getOrder
public List<ResolvedExpression> getOrder()
-
getChild
public QueryOperation getChild()
-
getOffset
public int getOffset()
-
getFetch
public int getFetch()
-
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()
-
getChildren
public List<QueryOperation> getChildren()
- Specified by:
getChildren
in interfaceQueryOperation
-
accept
public <T> T accept(QueryOperationVisitor<T> visitor)
- Specified by:
accept
in interfaceQueryOperation
-
-