hbase-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Doug Meil (JIRA)" <j...@apache.org>
Subject [jira] [Created] (HBASE-7221) RowKey utility class for rowkey construction
Date Mon, 26 Nov 2012 21:56:57 GMT
Doug Meil created HBASE-7221:

             Summary: RowKey utility class for rowkey construction
                 Key: HBASE-7221
                 URL: https://issues.apache.org/jira/browse/HBASE-7221
             Project: HBase
          Issue Type: Improvement
            Reporter: Doug Meil
            Assignee: Doug Meil
            Priority: Minor

A common question in the dist-lists is how to construct rowkeys, particularly composite keys.
 Put/Get/Scan specifies byte[] as the rowkey, but it's up to you to sensibly populate that
byte-array, and that's where things tend to go off the rails.

The intent of this RowKey utility class isn't meant to add functionality into Put/Get/Scan,
but rather make it simpler for folks to construct said arrays.  Example:

   RowKey key = RowKey.create(RowKey.SIZEOF_MD5_HASH + RowKey.SIZEOF_LONG);
   byte bytes[] = key.getBytes();

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

View raw message