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

Add BitComparator for filtering

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • None
    • 0.92.0
    • Client
    • None
    • Reviewed
    • filters, comparators

    Description

      There are many uses cases for setting bits flags and being able filter on those seems like a good idea.

      The BitComparator would take a byte[] and a bitwise operator for its constructor. It would perform the bitwise operation on the column value bytes with the specified byte[]. Then return whether the result was non-zero.

      Only the CompareOp.EQUAL and CompareOp.NOT_EQUAL would make sense with this comparator.

      The binary bitwise operators that apply are AND, OR, and XOR.

      Attachments

        1. HBASE-3335.patch
          3 kB
          Nathaniel Cook
        2. HBASE-3335.v2.patch
          6 kB
          Nathaniel Cook
        3. HBASE-3335.v3.patch
          7 kB
          Nathaniel Cook

        Issue Links

          Activity

            People

              Unassigned Unassigned
              nvcook42 Nathaniel Cook
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: