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

Change HBase StoreKey format

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 0.20.0
    • None
    • None

    Description

      HBASE-859 cleaned up keys removing the need of HRegionInfo being in the context comparing keys. This issue is about changing the format. Work done in HBASE-859 means changes have been localized to HStoreKey, in particular to comparators and parse routines. We should do this now since 0.20.0 will require rewriting all data.

      Things to consider:

      <row> <columnfamily> <columnqualifier> <timestamp> <keytype>

      Or leave off columnfamily altogether and just write it once into the hfile metadata (All key compares are done in the Store context so columnfamily can be safely left out of the equation; its only when the key rises above Store that the columnfamily needs appending).

      keytype is probably a byte. Types are delete cell, delete row, delete family, delete column? What else? Where should we put it? At the end? How should type sort? Or should it not be part of sort so its just the order at which we encounter the key?

      How are we going to support keys that go in out of chronological order?

      Attachments

        1. hbase-1234-v7.patch
          634 kB
          Michael Stack
        2. hbase-1234-v6.patch
          460 kB
          Michael Stack
        3. 1234-v5.patch
          437 kB
          Michael Stack
        4. 1234-v2.patch
          395 kB
          Michael Stack
        5. 1234.patch
          301 kB
          Michael Stack

        Issue Links

          Activity

            People

              stack Michael Stack
              stack Michael Stack
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: