GitHub user aljoscha opened a pull request:
https://github.com/apache/flink/pull/353
[FLINK-1463] Fix stateful/stateless Serializers and Comparators
Before, Serializers would announce whether they are stateful or not and
rely on RuntimeStatefulSerializerFactory to do the duplication.
Comparators, on the other hand, had a duplicate method that the user was
required to call.
This commit removes the statful/stateless property from Serializers but
instead introduces a duplicate() method, similar to Comparators, that
can return the same instance.
The two serializer factories are merged into one that always calls
duplicate() before returning a serializer.
You can merge this pull request into a Git repository by running:
$ git pull https://github.com/aljoscha/flink serializer-factories-fix
Alternatively you can review and apply these changes as the patch at:
https://github.com/apache/flink/pull/353.patch
To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:
This closes #353
----
commit 91834fee239b372b9a39f3c8f89ecbe42e2ae23a
Author: Aljoscha Krettek <[email protected]>
Date: 2015-01-30T15:43:31Z
[FLINK-1463] Fix stateful/stateless Serializers and Comparators
Before, Serializers would announce whether they are stateful or not and
rely on RuntimeStatefulSerializerFactory to do the duplication.
Comparators, on the other hand, had a duplicate method that the user was
required to call.
This commit removes the statful/stateless property from Serializers but
instead introduces a duplicate() method, similar to Comparators, that
can return the same instance.
The two serializer factories are merged into one that always calls
duplicate() before returning a serializer.
----
---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---