public class ZorderSorter extends TableSorter
ZIndexer. After add the column of
z-order, it does the range shuffle and sort. Finally, SortCompactAction will remove the
"z-order" column and insert sorted record to overwrite the origin table.TableSorter.OrderTypebatchTEnv, orderColNames, origin, table| Constructor and Description |
|---|
ZorderSorter(org.apache.flink.streaming.api.environment.StreamExecutionEnvironment batchTEnv,
org.apache.flink.streaming.api.datastream.DataStream<org.apache.flink.table.data.RowData> origin,
FileStoreTable table,
TableSortInfo sortInfo) |
| Modifier and Type | Method and Description |
|---|---|
org.apache.flink.streaming.api.datastream.DataStream<org.apache.flink.table.data.RowData> |
sort() |
getSorterpublic ZorderSorter(org.apache.flink.streaming.api.environment.StreamExecutionEnvironment batchTEnv,
org.apache.flink.streaming.api.datastream.DataStream<org.apache.flink.table.data.RowData> origin,
FileStoreTable table,
TableSortInfo sortInfo)
public org.apache.flink.streaming.api.datastream.DataStream<org.apache.flink.table.data.RowData> sort()
sort in class TableSorterCopyright © 2023–2024 The Apache Software Foundation. All rights reserved.