[
https://issues.apache.org/jira/browse/HBASE-7692?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13591554#comment-13591554
]
stack commented on HBASE-7692:
------------------------------
bq. It's just a lightweight way to have an offset/length into a byte array. You
can also reset the byte[],offset,length on an instance which prevents having to
re-instantiate a new one every time (unlike the java.nio.ByteBuffer)
Yeah [~giacomotaylor]. [~eclark] was showing me this friday. Can't we just
use Bytes.toBytes and reuse those buffers? Using Writables for this seems
heavy-handed (Once it may have made sense when Writables were pervasive. I
have a distinct aversion though having spent a good few months helping purge
them from hbase codebase).
More generally, for Orderly to come in, there would have to be a user I'd say
else danger it is going to be code that will just sit there, get stuck in a
back water -- no one knows it exists -- and it will just rot. And given that
we think this a client-side only facility, then it is tougher still pulling
this into the general codebase; i.e. +1 on a single serialization but -1 on
hbase doing anything but bytes... something like that.
> Add utility class to generate ordered byte[] serialization
> ----------------------------------------------------------
>
> Key: HBASE-7692
> URL: https://issues.apache.org/jira/browse/HBASE-7692
> Project: HBase
> Issue Type: Improvement
> Components: util
> Reporter: Nick Dimiduk
> Assignee: Nick Dimiduk
> Fix For: 0.95.0
>
> Attachments: HBASE-7692.v1.patch, HBASE-7692.v2.patch,
> HBASE-7692.v3.patch, HBASE-7692.v4.patch, HBASE-7692.v5.patch
>
>
> The current Bytes utility class works, but produces output that does not
> maintain the native sort ordering of the input value. This results in, for
> example, a negative value that does not necessarily sort before a positive
> value. HBase should provide a canonical implementation of such a
> serialization format so that third-parties can reliably build on top of
> HBase. This will allow an implementation for HIVE-3634, HIVE-2599, or
> HIVE-2903 that is compatible with similar features in Pig.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira