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

Support serializing asJavaIterable. #192

Merged
merged 2 commits into from Jul 2, 2014
Merged

Conversation

rxin
Copy link
Contributor

@rxin rxin commented Jun 28, 2014

No description provided.

@rxin
Copy link
Contributor Author

rxin commented Jun 28, 2014

See discussion from apache/spark#1206

@@ -160,6 +160,8 @@ class ScalaCollectionsRegistrar extends IKryoRegistrar {
.forTraversableSubclass(MMap.empty[Any, Any], isImmutable = false)
.forTraversableSubclass(MSet.empty[Any], isImmutable = false)
.forTraversableSubclass(ListBuffer.empty[Any], isImmutable = false)

newK.register(JavaIterableWrapperSerializer.wrapperClass, new JavaIterableWrapperSerializer)
Copy link
Collaborator

Choose a reason for hiding this comment

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

Should this maybe be split out as a separate class from the normal collections -- I presume eventually we may want all the collections wrappers?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I guess that's a decision for the project lead(s) ...

Copy link
Collaborator

Choose a reason for hiding this comment

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

Ok then, lets do that so. Split out the wrappers from the core collections.

@rxin
Copy link
Contributor Author

rxin commented Jun 30, 2014

Ok updated.

ianoc added a commit that referenced this pull request Jul 2, 2014
Support serializing asJavaIterable.
@ianoc ianoc merged commit a0be93b into twitter:develop Jul 2, 2014
@ianoc
Copy link
Collaborator

ianoc commented Jul 2, 2014

Sorry, been off at the spark conf so bit more time constrained. Merged. thanks!

@rxin
Copy link
Contributor Author

rxin commented Jul 2, 2014

Ah np - make sure you say hi at the next spark event :)

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.

None yet

2 participants