You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@hbase.apache.org by "Nick Dimiduk (JIRA)" <ji...@apache.org> on 2013/06/03 21:10:20 UTC

[jira] [Updated] (HBASE-8201) Implement serialization strategies

     [ https://issues.apache.org/jira/browse/HBASE-8201?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Nick Dimiduk updated HBASE-8201:
--------------------------------

    Attachment: 0001-HBASE-8201-OrderedBytes-provides-order-preserving-se.patch

WIP Commit. OrderedBytes provides a serialization format in which the resulting byte[] retains the same sort order as the natural types. Serialized formats can be inspected and decoded without forward knowledge of their content. Implementations are provided for Numeric values with up to 64-bits of precision, Strings, and byte[].

The encoding format is modeled after the SQLite4 key encoding format. See http://sqlite.org/src4/doc/trunk/www/key_encoding.wiki for details.
    
TODOs include:
 - descending sort order
 - encoding and decoding sequences of values ("compound rowkey")
 - bounds/error checking with String encoding
 - support for "mid" blob encoding and decoding, allowing byte[] to be used in the middle of compound keys.
 - utilities for counting, skipping encoded values on a ByteBuffer
 - consider using BigInteger/BigDecimal to allow for arbitrary size and precision numerics.
                
> Implement serialization strategies
> ----------------------------------
>
>                 Key: HBASE-8201
>                 URL: https://issues.apache.org/jira/browse/HBASE-8201
>             Project: HBase
>          Issue Type: Sub-task
>          Components: Client
>            Reporter: Nick Dimiduk
>         Attachments: 0001-HBASE-8201-OrderedBytes-provides-order-preserving-se.patch
>
>
> Once the spec is agreed upon, it must be implemented.

--
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