hbase-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jason Rutherglen <jason.rutherg...@gmail.com>
Subject Re: Converting byte[] to ByteBuffer
Date Sat, 09 Jul 2011 01:19:16 GMT
I don't think the object pointer overhead is very much given it's
usually pointing at a full block?  Perhaps we can implement a nicer
class like Lucene's BytesRef [1].  Then we can have our own class that
may wrap a byte[] or ByteBuffer.

1. http://lucene.apache.org/java/3_3_0/api/core/org/apache/lucene/util/BytesRef.html

On Fri, Jul 8, 2011 at 5:34 PM, Ryan Rawson <ryanobjc@gmail.com> wrote:
> Where? Everywhere? An array is 24 bytes, bb is 56 bytes. Also the API
> is...annoying.
> On Jul 8, 2011 4:51 PM, "Jason Rutherglen" <jason.rutherglen@gmail.com>
> wrote:
>> Is there an open issue for this? How hard will this be? :)
>

Mime
View raw message