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

    • Type: Sub-task
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 0.95.2
    • Fix Version/s: None
    • Component/s: Client
    • Labels:
      None
    • Hadoop Flags:
      Reviewed
    • Release Note:
      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.  
    • Tags:
      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.patch
          63 kB
          Jonathan Hsieh
        2. hbase-9334.v2.patch
          65 kB
          Jonathan Hsieh
        3. hbase-9334.v3.patch
          65 kB
          Jonathan Hsieh
        4. hbase-9334.v4.patch
          75 kB
          Jonathan Hsieh
        5. hbase-9334.v6.patch
          79 kB
          Jonathan Hsieh

          Activity

            People

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

              Dates

              • Created:
                Updated:
                Resolved: