Hi Andrzej,
this specially requested by Doug to do not instantiate the object by default since this consume to much resources.
So I changed this in the way it works today.

Stefan

On 25.04.2006, at 21:40, Andrzej Bialecki wrote:

Hi,

Per subject, I think it should follow the same pattern as other metadata maps in ParseData and Content. Currently when we allocate new CrawlDatum, metaData is null, which complicates the logic in all places that want to handle metaData.

When CrawlDatum is serialized, we already check if metaData.size() > 0, and if not then nothing is written out. So, it doesn't make much sense to use null here - savings on the object creation are also minimal.

If there are no objections, I'll make the change to always allocate metaData = new MapWritable(), whenever we create CrawlDatum.

--
Best regards,
Andrzej Bialecki     <><
___. ___ ___ ___ _ _   __________________________________
[__ || __|__/|__||\/|  Information Retrieval, Semantic Web
___|||__||  \|  ||  |  Embedded Unix, System Integration
http://www.sigram.com  Contact: info at sigram dot com






-------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Nutch-developers mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/nutch-developers

Reply via email to