shubham.gupta wrote
> Hey,
> 
> When a webpage is parsed it stores the date in the dt_stamp in Long 
> format. Whereas, I want to store it in ISODate Format. I have tried to 
> change the type of java.lang.Long to java .util.Long and have changed 
> while setting dtStamp and getting dtStamp.
> 
> But after i build the project, these are the wrrors I get:
> 
>      GeneratorReducer.java:80: error: incompatible types: long cannot be 
> converted to Date
>      [javac]           page.setDtStamp(1000L);
>      [javac]                                        ^
>      InjectorJob.java:161: error: incompatible types: long cannot be 
> converted to Date
>      [javac]         row.setDtStamp(curTime);
>      [javac]                                    ^
>      FetcherReducer.java:682: error: incompatible types: long cannot be 
> converted to Date
> 
>      [javac]             fit.page.setDtStamp(2000L);
>      [javac]                                              ^
>      [javac] Note: Some input files use unchecked or unsafe operations.
> 
> What changes should be made such that I can enable the dt_stamp to be 
> stored in Date Format?
> 
> -- 
> Thanks and Regards,
> Shubham Gupta


I have been digging the Nutch code for our requirement, I don't see the
field name you mentioned in the WebPage class, I see the following 
public void setModifiedTime(java.lang.Long value) {
    this.modifiedTime = value;
    setDirty(6);
  }

I guess you have implemented your own customer Plugin with the Parser
extension point. Is that correct?
Can you please provide more details, may be I can provide some direction?

Thanks,
Vicky




--
View this message in context: 
http://lucene.472066.n3.nabble.com/Changing-date-format-while-page-is-parsed-tp4313694p4313951.html
Sent from the Nutch - User mailing list archive at Nabble.com.

Reply via email to