On Feb 16, 2010, at 4:02 PM, Kelvin Moss wrote:
Thanks for the reply. Actually I have more than 10 keys in my map. I
tried the following in UDF and it seems to work
Long id;
if (m.get("id") != null) {
id = Long.parseLong(m.get("id").toString());
}
This is correct approach, right?
As long as your data is UTF8 (which DataByteArray.toString() assumes), then yes.
Alan.
