You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@accumulo.apache.org by Sujee Maniyam <su...@sujee.net> on 2013/12/20 08:46:12 UTC
equivalent class for HBase Bytes ?
Hbase has a handy Bytes class that can help in creating row-keys
http://hbase.apache.org/apidocs/org/apache/hadoop/hbase/util/Bytes.html
is there an equivalent utility class in Accumulo?
thanks!
Sujee Maniyam (http://sujee.net)
Re: equivalent class for HBase Bytes ?
Posted by Josh Elser <jo...@gmail.com>.
Hi Sujee,
I don't think there's a direct equivalent.
For the typed methods in Bytes, you could look at the Lexicoder
implementations in Accumulo (accumulo-core module,
org.apache.accumulo.core.client.lexicoder package in 1.6.0). The
Lexicoders are also nice because they preserve correct sort order
(didn't look at the implementation of Bytes to see how they work).
There's a StringUtil and TextUtil class in o.a.a.c.util that may also
have some use for you.
On 12/20/13, 2:46 AM, Sujee Maniyam wrote:
> Hbase has a handy Bytes class that can help in creating row-keys
> http://hbase.apache.org/apidocs/org/apache/hadoop/hbase/util/Bytes.html
>
> is there an equivalent utility class in Accumulo?
>
> thanks!
> Sujee Maniyam (http://sujee.net)
>