public static class RangeShuffle.KeyAndSizeExtractor<T> extends org.apache.flink.api.common.functions.RichMapFunction<org.apache.flink.api.java.tuple.Tuple2<T,org.apache.flink.table.data.RowData>,org.apache.flink.api.java.tuple.Tuple2<T,Integer>>
| Constructor and Description |
|---|
KeyAndSizeExtractor(RowType rowType,
boolean isSortBySize) |
| Modifier and Type | Method and Description |
|---|---|
org.apache.flink.api.java.tuple.Tuple2<T,Integer> |
map(org.apache.flink.api.java.tuple.Tuple2<T,org.apache.flink.table.data.RowData> keyAndRowData) |
void |
open(org.apache.flink.configuration.Configuration parameters)
Do not annotate with
@override here to maintain compatibility with Flink
2.0+. |
void |
open(OpenContext openContext)
Do not annotate with
@override here to maintain compatibility with Flink
1.18-. |
public KeyAndSizeExtractor(RowType rowType, boolean isSortBySize)
public void open(OpenContext openContext) throws Exception
@override here to maintain compatibility with Flink
1.18-.Exceptionpublic void open(org.apache.flink.configuration.Configuration parameters)
throws Exception
@override here to maintain compatibility with Flink
2.0+.open in interface org.apache.flink.api.common.functions.RichFunctionopen in class org.apache.flink.api.common.functions.AbstractRichFunctionExceptionpublic org.apache.flink.api.java.tuple.Tuple2<T,Integer> map(org.apache.flink.api.java.tuple.Tuple2<T,org.apache.flink.table.data.RowData> keyAndRowData) throws Exception
map in interface org.apache.flink.api.common.functions.MapFunction<org.apache.flink.api.java.tuple.Tuple2<T,org.apache.flink.table.data.RowData>,org.apache.flink.api.java.tuple.Tuple2<T,Integer>>map in class org.apache.flink.api.common.functions.RichMapFunction<org.apache.flink.api.java.tuple.Tuple2<T,org.apache.flink.table.data.RowData>,org.apache.flink.api.java.tuple.Tuple2<T,Integer>>ExceptionCopyright © 2023–2025 The Apache Software Foundation. All rights reserved.