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<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
All Methods Instance Methods Concrete Methods Modifier and Type Method Description <T> Taccept(QueryOperationVisitor<T> visitor)StringasSummaryString()Returns a string that summarizes this operation for printing to a console.QueryOperationgetChild()List<QueryOperation>getChildren()intgetFetch()intgetOffset()List<org.apache.flink.table.expressions.ResolvedExpression>getOrder()org.apache.flink.table.catalog.ResolvedSchemagetResolvedSchema()Resolved schema of this operation.-
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
-
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()
-
getChild
public QueryOperation 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
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
-
getChildren
public List<QueryOperation> getChildren()
- Specified by:
getChildrenin interfaceQueryOperation
-
accept
public <T> T accept(QueryOperationVisitor<T> visitor)
- Specified by:
acceptin interfaceQueryOperation
-
-