hbase-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Stack <st...@duboce.net>
Subject Re: Using java's getBytes() vs using Bytes.getBytes()
Date Thu, 26 May 2011 15:17:05 GMT
Bytes.toBytes does explicit UTF8.  Java's toBytes will use the
machine's locale which could vary by client.
St.Ack

On Thu, May 26, 2011 at 8:03 AM, Hari Sreekumar
<hsreekumar@clickable.com> wrote:
> Hi,
>
> I have seen people using java's native .toBytes() function without any
> problems which converting tablenames etc. to bytes. I would just like to
> confirm if using java's native toBytes() is fine. Is there a possibility
> that the HBase byte conversion codec might change in future? Is it currently
> safe?
>
> Thanks,
> HS
>

Mime
View raw message