Skip to content

Commit 21092bf

Browse files
authored
[FLINK-3992][core] Do not implement deprecated Key interface
1 parent cc0a8b3 commit 21092bf

File tree

4 files changed

+7
-7
lines changed

4 files changed

+7
-7
lines changed

flink-core/src/main/java/org/apache/flink/types/DoubleValue.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,8 +32,7 @@
3232
public class DoubleValue
3333
implements Comparable<DoubleValue>,
3434
ResettableValue<DoubleValue>,
35-
CopyableValue<DoubleValue>,
36-
Key<DoubleValue> {
35+
CopyableValue<DoubleValue> {
3736
private static final long serialVersionUID = 1L;
3837

3938
private double value;

flink-core/src/main/java/org/apache/flink/types/FloatValue.java

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -30,10 +30,7 @@
3030
*/
3131
@Public
3232
public class FloatValue
33-
implements Comparable<FloatValue>,
34-
ResettableValue<FloatValue>,
35-
CopyableValue<FloatValue>,
36-
Key<FloatValue> {
33+
implements Comparable<FloatValue>, ResettableValue<FloatValue>, CopyableValue<FloatValue> {
3734
private static final long serialVersionUID = 1L;
3835

3936
private float value;

flink-core/src/main/java/org/apache/flink/types/NormalizableKey.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@
3434
* normalized key length.
3535
*/
3636
@Public
37-
public interface NormalizableKey<T> extends Comparable<T>, Key<T> {
37+
public interface NormalizableKey<T> extends Comparable<T> {
3838

3939
/**
4040
* Gets the maximal length of normalized keys that the data type would produce to determine the

pom.xml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2393,6 +2393,10 @@ under the License.
23932393
<exclude>
23942394
org.apache.flink.api.common.functions.RuntimeContext#getExecutionConfig()
23952395
</exclude>
2396+
<!-- FLINK-3992 Do not implement deprecated Key interface in flink 2.0 -->
2397+
<exclude>org.apache.flink.types.DoubleValue</exclude>
2398+
<exclude>org.apache.flink.types.FloatValue</exclude>
2399+
<exclude>org.apache.flink.types.NormalizableKey</exclude>
23962400
<!-- FLINK-5336 Remove IOReadableWritable from Path in flink-2.0. -->
23972401
<exclude>org.apache.flink.core.fs.Path</exclude>
23982402
<!-- The following exclusions are due to the flink-hadoop-compatibility_${scala.binary.version} module has renamed to flink-hadoop-compatibility. -->

0 commit comments

Comments
 (0)