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

Allow record filtering with selected row key values in HBase Export

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 0.20.3
    • 0.92.0
    • util
    • 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

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

              Dates

                Created:
                Updated:
                Resolved: