Uploaded image for project: 'HBase'
  1. HBase
  2. HBASE-9245 Remove dead or deprecated code from hbase 0.96
  3. HBASE-9334

Convert KeyValue to Cell in hbase-client module - Filters

    XMLWordPrintableJSON

Details

    • Sub-task
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 0.95.2
    • None
    • Client
    • None
    • Reviewed
    • Hide
      The 'KeyValue Filter#getNextKeyHint(KeyValue) throws IOException;' method has been deprecated. Filters should now override 'Cell Filter#getNextCellHint(final Cell) throws IOException' method instead.
      The 'Filter#getFilterRow(List<KeyValue>) method has been deprecated. Filters should now override 'Cell Filter#filterRowCells(List<Cell>)' method instead.
      The 'Filter#transform(KeyValue) method has been deprecated. Filters should now override 'Cell Filter#transformCell(Cell)' method instead.

      Shims have been added to support older filter derived from FilterBase but this incurs a performance penalty.

       
      Show
      The 'KeyValue Filter#getNextKeyHint(KeyValue) throws IOException;' method has been deprecated. Filters should now override 'Cell Filter#getNextCellHint(final Cell) throws IOException' method instead. The 'Filter#getFilterRow(List<KeyValue>) method has been deprecated. Filters should now override 'Cell Filter#filterRowCells(List<Cell>)' method instead. The 'Filter#transform(KeyValue) method has been deprecated. Filters should now override 'Cell Filter#transformCell(Cell)' method instead. Shims have been added to support older filter derived from FilterBase but this incurs a performance penalty.  
    • Phoenix

    Description

      The goal is is to remove KeyValue from the publicly exposed API and require clients to use the cleaner mroe encapsulated Cell API instead. For filters, this affects #filterKeyValue, #transform, #filterrow, and #getNextKeyHint.

      Since Cell is a base interface for KeyValue, changing these means that 0.94 apps may need a recompile but probably no modifications.

      Attachments

        1. hbase-9334.v6.patch
          79 kB
          Jonathan Hsieh
        2. hbase-9334.v4.patch
          75 kB
          Jonathan Hsieh
        3. hbase-9334.v3.patch
          65 kB
          Jonathan Hsieh
        4. hbase-9334.v2.patch
          65 kB
          Jonathan Hsieh
        5. hbase-9334.patch
          63 kB
          Jonathan Hsieh

        Activity

          People

            jmhsieh Jonathan Hsieh
            jmhsieh Jonathan Hsieh
            Votes:
            0 Vote for this issue
            Watchers:
            12 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: