Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Move OrderedSerialization into zero-dep scalding-serialization module #1289

Merged
merged 2 commits into from
May 14, 2015

Conversation

johnynek
Copy link
Collaborator

This is pretty general code and nice to have it not so tightly coupled to scalding. Was really easy to do this refactor, so there really is not a coupling.

@@ -50,6 +50,8 @@ class KryoHadoop(config: Config) extends KryoInstantiator {
newK.register(classOf[com.twitter.algebird.HyperLogLogMonoid], new HLLMonoidSerializer)
newK.register(classOf[com.twitter.algebird.Moments], new MomentsSerializer)
newK.addDefaultSerializer(classOf[com.twitter.algebird.HLL], new HLLSerializer)
// Don't serialize Boxed instances using Kryo.
newK.addDefaultSerializer(classOf[com.twitter.scalding.serialization.Boxed[_]], new ThrowingSerializer)
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Did you manage to test this?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No, I didn't, but it should not be hard to do. I'll add such a test.

@ianoc
Copy link
Collaborator

ianoc commented May 14, 2015

LGTM --> test as a follow up pr seems fine with me.

ianoc added a commit that referenced this pull request May 14, 2015
Move OrderedSerialization into zero-dep scalding-serialization module
@ianoc ianoc merged commit 3526894 into develop May 14, 2015
@ianoc ianoc deleted the factor-serialization branch May 14, 2015 23:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants