avro-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Yang <teddyyyy...@gmail.com>
Subject why Utf8 (vs String)?
Date Thu, 11 Aug 2011 23:36:09 GMT
if I declare a field to be "string", the generated java implementation
uses avro......Utf8 for that,

I was wondering what is the thinking behind this, and what is the
proper way to use the Utf8 value -----
oftentimes in my logic, I need to compare the value against other
String's, or store them into other databases , which
of course do not know about Utf8, so that I'd have to transform them
into String's.  so it seems being Utf8 unnecessarily
asks for a lot of transformations.

or I guess I'm not getting the correct usage ?

Thanks
Yang

Mime
View raw message