OPICScoringFilter & Metadata transport scores as String

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

OPICScoringFilter & Metadata transport scores as String

Stefan Groschupf-2
Hi,

OPICScoringFilter line  91:
content.getMetadata().set(Fetcher.SCORE_KEY, "" + datum.getScore());
and line 96,102 we set and get the Fetch Sore as Strings. :-o.
Wouldn't it be better to have the Metadata support floats as well  
instead of serializing and parsing strings?
In general wouldn't it be a good idea to have Metadata as child of  
MapWritable ? OO Design?

Any thoughts?

Stefan