gora-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Lewis John Mcgibbney <lewis.mcgibb...@gmail.com>
Subject Re: Should MongoDB know about Utf8?
Date Sat, 01 Nov 2014 15:19:47 GMT
Hi Alfonso,

On Sat, Nov 1, 2014 at 6:04 AM, <dev-digest-help@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!

  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message