[ 
https://issues.apache.org/jira/browse/NUTCH-434?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12467912
 ] 

Sami Siren commented on NUTCH-434:
----------------------------------

It's only half way if we get the Configuration into our subclass, there's no 
way (at least that I can see) you can inject it into wrapped object without 
overriding most (if not all) methods of WrappedWritable since the member 
variables are private. That's why i was talking about writing a class similar 
to GW.

> Replace usage of ObjectWritable with something based on GenericWritable
> -----------------------------------------------------------------------
>
>                 Key: NUTCH-434
>                 URL: https://issues.apache.org/jira/browse/NUTCH-434
>             Project: Nutch
>          Issue Type: Improvement
>            Reporter: Sami Siren
>
> We should replace the usage of ObjectWritable and classes extending it with 
> class extending GenericWritable. Classes based on GenericWritable have 
> smaller footprint on disc and the baseclass also does not contain any classes 
> that are Deprecated.
> There is one problem though: the ParseData currently needs Configuration 
> object before it can deserialize itself and GenericWritable
> doesn't provide a way to inject configuration in. We could either a) remove 
> the need for Configuration, or b) write a class similar to GenericWritable 
> that does conf injecting.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to