Hi Feng,

map Writrable is a kind of hashmap.
You can put in any key value pair, but the key and values need to be Writables: http://lucene.apache.org/hadoop/docs/api/org/apache/hadoop/io/ Writable.html

You can use UTF8 as StingKey and Value or ByteWritable as key and Utf8 as Values.
Etc.
Does this answer your question?
Stefan


Am 12.06.2006 um 04:15 schrieb Feng Ji:

hi,

I wonder how to use "MapWritable metaData" in CrawlDatum.java. The API gives
us some function call, but I still don't know how to
input information (String) to metaData and retrieve information; How to convert MapWritable variable to other types like MetaData type or String
type.

Any good sample in Nutch's java class?

thanks,

Feng

Reply via email to