[
https://issues.apache.org/jira/browse/HBASE-7692?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13591565#comment-13591565
]
Matt Corgan commented on HBASE-7692:
------------------------------------
{quote}Can't we just use Bytes.toBytes and reuse those buffers? Using Writables
for this seems heavy-handed{quote}Or just create a little class that does
what's needed from Writable. Then it won't depend on Bytes.java either. The
benefit of dropping the hadoop dependency and making it an independent library
is well worth a tiny bit of code duplication in my opinion. Imagine if the
Guava libs made you pull in stuff like hadoop jars.
> 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