[ 
https://issues.apache.org/jira/browse/HBASE-17320?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15782899#comment-15782899
 ] 

Duo Zhang commented on HBASE-17320:
-----------------------------------

Add tests in AbstractTestAsyncTableScan

{code:title=AbstractTestAsyncTableScan.java}
  @Test
  public void testScanWithStartKeyAndStopKey() throws Exception {
    testScan(1, true, 998, false); // from first region to last region
    testScan(123, true, 345, true);
    testScan(234, true, 456, false);
    testScan(345, false, 567, true);
    testScan(456, false, 678, false);
  }

  @Test
  public void testReversedScanWithStartKeyAndStopKey() throws Exception {
    testReversedScan(998, true, 1, false); // from first region to first region
    testReversedScan(543, true, 321, true);
    testReversedScan(654, true, 432, false);
    testReversedScan(765, false, 543, true);
    testReversedScan(876, false, 654, false);
  }
{code}

> Add inclusive/exclusive support for startRow and endRow of scan
> ---------------------------------------------------------------
>
>                 Key: HBASE-17320
>                 URL: https://issues.apache.org/jira/browse/HBASE-17320
>             Project: HBase
>          Issue Type: Sub-task
>          Components: Client, scan
>    Affects Versions: 2.0.0
>            Reporter: Duo Zhang
>            Assignee: Duo Zhang
>             Fix For: 2.0.0
>
>         Attachments: HBASE-17320-v1.patch, HBASE-17320-v2.patch, 
> HBASE-17320-v3.patch, HBASE-17320-v4.patch, HBASE-17320-v5.patch, 
> HBASE-17320-v6.patch, HBASE-17320.patch
>
>
> This is especially useful when doing reverse scan. HBASE-17168 maybe a more 
> powerful solution but we need to be careful about the atomicity, and I do not 
> think we will provide the feature to end user. But I think it is OK to 
> provide inclusive/exclusive option to end user.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to