Uploaded image for project: 'HBase'
  1. HBase
  2. HBASE-13197 Connection API cleanup
  3. HBASE-13954

Remove HTableInterface#getRowOrBefore related server side code

    XMLWordPrintableJSON

Details

    • Sub-task
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 2.0.0
    • API
    • None
    • Incompatible change, Reviewed
    • Hide
      Removed Table#getRowOrBefore, Region#getClosestRowBefore, Store#getRowKeyAtOrBefore, RemoteHTable#getRowOrBefore apis and Thrift support for getRowOrBefore.
      Also removed two coprocessor hooks preGetClosestRowBefore and postGetClosestRowBefore.
      User using this api can instead use reverse scan something like below,
      {code}
       Scan scan = new Scan(row);
        scan.setSmall(true);
        scan.setCaching(1);
        scan.setReversed(true);
        scan.addFamily(family);
      {code}
      pass this scan object to the scanner and retrieve the first Result from scanner output.
      Show
      Removed Table#getRowOrBefore, Region#getClosestRowBefore, Store#getRowKeyAtOrBefore, RemoteHTable#getRowOrBefore apis and Thrift support for getRowOrBefore. Also removed two coprocessor hooks preGetClosestRowBefore and postGetClosestRowBefore. User using this api can instead use reverse scan something like below, {code}  Scan scan = new Scan(row);   scan.setSmall(true);   scan.setCaching(1);   scan.setReversed(true);   scan.addFamily(family); {code} pass this scan object to the scanner and retrieve the first Result from scanner output.

    Description

      As part of HBASE-13214 review, anoop.hbase had a review comment on the review board to remove all the server side related code for getRowOrBefore.

      Attachments

        1. HBASE-13954-v6.patch
          199 kB
          Ashish Singhi
        2. HBASE-13954-v5.patch
          199 kB
          Ashish Singhi
        3. HBASE-13954-v4.patch
          203 kB
          Ashish Singhi
        4. HBASE-13954-v3.patch
          113 kB
          Ashish Singhi
        5. HBASE-13954-v2.patch
          113 kB
          Ashish Singhi
        6. HBASE-13954-v1.patch
          111 kB
          Ashish Singhi
        7. HBASE-13954(1).patch
          109 kB
          Ashish Singhi
        8. HBASE-13954.patch
          109 kB
          Ashish Singhi

        Issue Links

          Activity

            People

              ashish singhi Ashish Singhi
              ashish singhi Ashish Singhi
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: