Class 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 Detail

      • 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 Detail

      • getOrder

        public List<org.apache.flink.table.expressions.ResolvedExpression> getOrder()
      • getOffset

        public int getOffset()
      • getFetch

        public int getFetch()
      • getResolvedSchema

        public org.apache.flink.table.catalog.ResolvedSchema getResolvedSchema()
        Description copied from interface: QueryOperation
        Resolved schema of this operation.
        Specified by:
        getResolvedSchema in interface QueryOperation
      • 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 interface Operation
        Returns:
        summary string of this operation for debugging purposes