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

Allow record filtering with selected row key values in HBase Export

    XMLWordPrintableJSON

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 0.20.3
    • Fix Version/s: 0.92.0
    • Component/s: util
    • Hadoop Flags:
      Reviewed

      Description

      It is desirable to add record filtering capability to HBase Export.

      The following code is an example (s is the Scan):
      byte [] prefix = Bytes.toBytes(args[5]);
      if (args[5].startsWith("^"))

      { s.setFilter(new RowFilter(CompareOp.EQUAL, new RegexStringComparator(args[5]))); }

      else s.setFilter(new PrefixFilter(prefix));

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                ted_yu Ted Yu
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: