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

Update REST API scanner with ability to do reverse scan

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • 1.1.2
    • 1.4.0, 0.98.22, 2.0.0
    • REST
    • None
    • Not environment specific (tested on HDP 2.4.2)

    • 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.master.001.patch
          2 kB
          ramkrishna.s.vasudevan
        2. HBASE-16299.branch-1.3.001.patch
          5 kB
          Minwoo Kang

        Issue Links

          Activity

            People

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

              Dates

                Created:
                Updated:
                Resolved: