[
https://issues.apache.org/jira/browse/FLINK-2315?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15080878#comment-15080878
]
Martin Junghanns commented on FLINK-2315:
-----------------------------------------
I looked into the two classes. They are nearly identical and
{{WritableComparator}} also offers a method {{supportsNormalizedKey()}} which
returns {{true}} for classes that implement {{Writable}} and
{{NormalizableKey}}.
Nevertheless, I wrote a small test program which uses some dataset operators
(group, join, map, flatMap), and set a breakpoint in my
{{getMaxNormalizedKeyLen}}, {{copyNormalizedKey}}, {{write}} and {{read}}
methods. In my test program only {{getMaxNormalizedKeyLen}} gets called. Is
there a specific way to test the correct behaviour?
> Hadoop Writables cannot exploit implementing NormalizableKey
> ------------------------------------------------------------
>
> Key: FLINK-2315
> URL: https://issues.apache.org/jira/browse/FLINK-2315
> Project: Flink
> Issue Type: Bug
> Components: Java API
> Affects Versions: 0.9
> Reporter: Stephan Ewen
> Fix For: 1.0.0
>
>
> When one implements a type that extends {{hadoop.io.Writable}} and it
> implements {{NormalizableKey}}, this is still not exploited.
> The Writable comparator fails to recognize that.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)