Hi Alfonso, On Sat, Nov 1, 2014 at 6:04 AM, <dev-digest-h...@gora.apache.org> wrote:
> As always, I am slow to process :P > Can anyone tell me why are we using Utf8 and not String? > I think it is more of a legacy thing. In fact, If anything it is *exactly* a legacy thing and it is a direct tie to our underlying association with and dependence upon Avro. > Talking about gora-hbase, although the compiler uses CharSequence > everywhere, gora-hbase module return always Utf8 independetly of what type > of CharSequence you wrote. Moreover, when writing, the CharSequence is > converted to String [1], while when reading it goes from String to Utf8 > [2]. > Yeah this sounds pretty inefficient as well as illogical > > What is the reason behind using Utf8? Under my ignorance I would vote to > remove every Utf8 reference, and this obviously is good for MongoDB ;) Sounds as if you've made your case pretty clear to me Alfonso!