Uploaded image for project: 'HBase'
  1. HBase
  2. HBASE-7221

[experiment] RowKey utility class for rowkey construction

VotersWatch issueWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

    Details

    • Type: New Feature
    • Status: Resolved
    • Priority: Minor
    • Resolution: Won't Fix
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: util
    • Labels:
      None

      Description

      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);
         key.addHash(a);
         key.add(b);
         byte bytes[] = key.getBytes();
      

        Attachments

        1. HBASE_7221.patch
          8 kB
          Doug Meil
        2. hbase-common_hbase_7221_2.patch
          8 kB
          Doug Meil
        3. hbase-common_hbase_7221_v3.patch
          15 kB
          Doug Meil
        4. hbase-common_hbase_7221_v4.patch
          31 kB
          Doug Meil
        5. hbase-server_hbase_7221_v5.patch
          31 kB
          Doug Meil
        6. hbase-server_hbase_7221_v6.patch
          34 kB
          Doug Meil

        Issue Links

          Activity

            People

            • Assignee:
              dmeil Doug Meil
              Reporter:
              dmeil Doug Meil

              Dates

              • Created:
                Updated:
                Resolved:

                Issue deployment