public class HilbertSorter extends TableSorter
HilbertIndexer
. After add the
column of hilbert, it does the range shuffle and sort. Finally, SortCompactAction
will
remove the "hilbert" column and insert sorted record to overwrite the origin table.TableSorter.OrderType
batchTEnv, orderColNames, origin, table
Constructor and Description |
---|
HilbertSorter(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 tableSortInfo) |
Modifier and Type | Method and Description |
---|---|
org.apache.flink.streaming.api.datastream.DataStream<org.apache.flink.table.data.RowData> |
sort() |
getSorter
public HilbertSorter(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 tableSortInfo)
public org.apache.flink.streaming.api.datastream.DataStream<org.apache.flink.table.data.RowData> sort()
sort
in class TableSorter
Copyright © 2023–2024 The Apache Software Foundation. All rights reserved.