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

Allow to specify a user supplied row key comparator for a table

    XMLWordPrintableJSON

Details

    • New Feature
    • Status: Closed
    • Major
    • Resolution: Invalid
    • 0.2.0
    • None
    • Client, master, regionserver
    • None

    Description

      Now that row keys are byte arrays, users should be able to specify a comparator at table creation time.

      My use case for this is to implement secondary indexes. In this case, row keys for the index tables will be constructed from an optional prefix of the original row key as well as the content of column that is being indexed. Then the comparator will first compare based on the key prefix, and break ties by deserializing the column values and using the deserialized type's compareTo method.

      Attachments

        Issue Links

          Activity

            People

              clint.morgan Clint Morgan
              clint.morgan Clint Morgan
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: