[
https://issues.apache.org/jira/browse/HBASE-11990?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
stack updated HBASE-11990:
--------------------------
Attachment: 11990v4.txt
I got this:
Hunk #1 FAILED at 23.
Hunk #2 succeeded at 133 with fuzz 2 (offset 25 lines).
1 out of 2 hunks FAILED -- saving rejects to file
hbase-client/src/test/java/org/apache/hadoop/hbase/client/TestScan.java.rej
Seems like your branch a little stale.
v4 is after some small fixup in imports. Lets see how it does.
Oh, nit, drop the '--no-prefix' generating the patch going forwward. I know
our doc says to do this but we are changing it (see
https://issues.apache.org/jira/browse/HBASE-11937). Thanks [~nielsbasjes]
> Make setting the start and stop row for a specific prefix easier
> ----------------------------------------------------------------
>
> Key: HBASE-11990
> URL: https://issues.apache.org/jira/browse/HBASE-11990
> Project: HBase
> Issue Type: New Feature
> Components: Client
> Reporter: Niels Basjes
> Attachments: 11990v4.txt, HBASE-11990-20140916-v2.patch,
> HBASE-11990-20140916-v3.patch, HBASE-11990-20140916.patch
>
>
> If you want to set a scan from your application to scan for a specific row
> prefix this is actually quite hard.
> As described in several places you can set the startRow to the prefix; yet
> the stopRow should be set to the prefix '+1'
> If the prefix 'ASCII' put into a byte[] then this is easy because you can
> simply increment the last byte of the array.
> But if your application uses real binary rowids you may run into the scenario
> that your prefix is something like
> {code}{ 0x12, 0x23, 0xFF, 0xFF }{code} Then the increment should be {code}{
> 0x12, 0x24 }{code}
> I have prepared a proposed patch that makes setting these values correctly a
> lot easier.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)