Skip to content

Replace Map<String,String[]> with serializable Metadata in Fetcher and protocol#78

Merged
jnioche merged 9 commits intomasterfrom
metadata2
Feb 4, 2015
Merged

Replace Map<String,String[]> with serializable Metadata in Fetcher and protocol#78
jnioche merged 9 commits intomasterfrom
metadata2

Conversation

@jnioche
Copy link
Copy Markdown
Contributor

@jnioche jnioche commented Jan 29, 2015

The bolts still emit Map<String,String[]> to the subsequent bolts for now.

Replaces #36

Still need to port to other parts of the code but we can already discuss possible improvements to it now.

…nd protocol

The bolts still emit Map<String,String[]> to the subsequent bolts for now.
…nd protocol

The bolts still emit Map<String,String[]> to the subsequent bolts for now.
I replaced the old Map<String,String[]> with Metadata in all the interfaces
(urlfilters, parsefilters) as well as the bolts
@jnioche
Copy link
Copy Markdown
Contributor Author

jnioche commented Feb 3, 2015

Note to self : read about serialization in Storm and Kryo
[https://storm.apache.org/documentation/Serialization.html]
[https://github.com/EsotericSoftware/kryo#quickstart]

Can now use Metadata with Storm in distributed mode
@jnioche
Copy link
Copy Markdown
Contributor Author

jnioche commented Feb 3, 2015

@DigitalPebble/committers-crawler could you please review this?

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

There's also a non static registerSerialization on the Config object

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

any reason to use one and not the other?

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

None. Except my preference for non-static method :)

@GuiForget
Copy link
Copy Markdown

Looks good to me. I noticed your code formatter adds a space after the * in empty javadoc line.

@jnioche
Copy link
Copy Markdown
Contributor Author

jnioche commented Feb 4, 2015

Thanks for reviewing this Gui. Haven't found how to change the code formatter to do that. Will start working on the merge and commit once I've heard back from you on the points above.

@GuiForget
Copy link
Copy Markdown

Looks good

jnioche added a commit that referenced this pull request Feb 4, 2015
Replace Map<String,String[]> with serializable Metadata in Fetcher and protocol
@jnioche jnioche merged commit 59b996b into master Feb 4, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants