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

Update REST API scanner with ability to do reverse scan

    XMLWordPrintableJSON

    Details

    • Type: Improvement
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 1.1.2
    • Fix Version/s: 1.4.0, 0.98.22, 2.0.0
    • Component/s: REST
    • Labels:
      None
    • Environment:

      Not environment specific (tested on HDP 2.4.2)

    • Hadoop Flags:
      Reviewed

      Description

      HBASE-4811 "Support reverse scan" was implemented from version 0.98.0, and is available in the Java API.
      However this functionality is not yet exposed via REST.

      Example of expected API call:
      http://server:port/table/*?startrow=1&endrow=10&reversed=true"
      (Returns rows ordered by key in reverse, eg from 9*** to 1*** )

      Based on my (limited) understanding this should be simple to add.
      See org.apach.hadoop.hbase.rest.TableResource.getScanResource
      This function creates a Scan object with parameters passed in from the REST API (I assume).

      Adding this functionality may be as simple as adding a "reversed" parameter to the REST API which passes down to where the Scan object is created in TableResource.getScanResource.

        Attachments

        1. HBASE-16299.branch-1.3.001.patch
          5 kB
          Minwoo Kang
        2. HBASE-16299.master.001.patch
          2 kB
          ramkrishna.s.vasudevan

          Issue Links

            Activity

              People

              • Assignee:
                minwoo.kang Minwoo Kang
                Reporter:
                bjorn.olsen1@gmail.com Bjorn Olsen
              • Votes:
                0 Vote for this issue
                Watchers:
                5 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: