[jira] [Updated] (HBASE-11990) Make setting the start and stop row for a specific prefix easier
[ https://issues.apache.org/jira/browse/HBASE-11990?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Niels Basjes updated HBASE-11990: - Status: Open (was: Patch Available) 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-v5.patch, HBASE-11990-20140916-v6.patch, HBASE-11990-20140916.patch, HBASE-11990-20140917-v7.patch, HBASE-11990-20140919-v8.patch, HBASE-11990-20140921-v9.patch, HBASE-11990-20140923-v10.patch, HBASE-11990-20140923-v10.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)
[jira] [Updated] (HBASE-11990) Make setting the start and stop row for a specific prefix easier
[ https://issues.apache.org/jira/browse/HBASE-11990?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Niels Basjes updated HBASE-11990: - Status: Patch Available (was: Open) 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-v5.patch, HBASE-11990-20140916-v6.patch, HBASE-11990-20140916.patch, HBASE-11990-20140917-v7.patch, HBASE-11990-20140919-v8.patch, HBASE-11990-20140921-v9.patch, HBASE-11990-20140923-v10.patch, HBASE-11990-20140923-v10.patch, HBASE-11990-20141009-v11.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)
[jira] [Updated] (HBASE-11990) Make setting the start and stop row for a specific prefix easier
[ https://issues.apache.org/jira/browse/HBASE-11990?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Niels Basjes updated HBASE-11990: - Attachment: HBASE-11990-20141009-v11.patch The same as patch v10 but this one does cleanly apply in todays tree. 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-v5.patch, HBASE-11990-20140916-v6.patch, HBASE-11990-20140916.patch, HBASE-11990-20140917-v7.patch, HBASE-11990-20140919-v8.patch, HBASE-11990-20140921-v9.patch, HBASE-11990-20140923-v10.patch, HBASE-11990-20140923-v10.patch, HBASE-11990-20141009-v11.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)
[jira] [Updated] (HBASE-11990) Make setting the start and stop row for a specific prefix easier
[ https://issues.apache.org/jira/browse/HBASE-11990?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] stack updated HBASE-11990: -- Resolution: Fixed Fix Version/s: 0.99.1 2.0.0 Release Note: Added new utility method, setRowPrefixFilter, to Scan to easily scan for a specific row prefix (was: Added new method to easily scan for a specific row prefix) Hadoop Flags: Reviewed Status: Resolved (was: Patch Available) Committed to branch-1+ Thanks for the patch (and persistence) [~nielsbasjes] JIRA is acting up so can't add you as a contributor just yet... will try again later and assign you this issue. 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 Fix For: 2.0.0, 0.99.1 Attachments: 11990v4.txt, HBASE-11990-20140916-v2.patch, HBASE-11990-20140916-v3.patch, HBASE-11990-20140916-v5.patch, HBASE-11990-20140916-v6.patch, HBASE-11990-20140916.patch, HBASE-11990-20140917-v7.patch, HBASE-11990-20140919-v8.patch, HBASE-11990-20140921-v9.patch, HBASE-11990-20140923-v10.patch, HBASE-11990-20140923-v10.patch, HBASE-11990-20141009-v11.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)
[jira] [Updated] (HBASE-11990) Make setting the start and stop row for a specific prefix easier
[ https://issues.apache.org/jira/browse/HBASE-11990?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] stack updated HBASE-11990: -- Attachment: HBASE-11990-20140923-v10.patch Retry to see if still applies and to see if any issues now tests have been stabilized (mostly) 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-v5.patch, HBASE-11990-20140916-v6.patch, HBASE-11990-20140916.patch, HBASE-11990-20140917-v7.patch, HBASE-11990-20140919-v8.patch, HBASE-11990-20140921-v9.patch, HBASE-11990-20140923-v10.patch, HBASE-11990-20140923-v10.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)
[jira] [Updated] (HBASE-11990) Make setting the start and stop row for a specific prefix easier
[ https://issues.apache.org/jira/browse/HBASE-11990?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Niels Basjes updated HBASE-11990: - Status: Open (was: Patch Available) 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-v5.patch, HBASE-11990-20140916-v6.patch, HBASE-11990-20140916.patch, HBASE-11990-20140917-v7.patch, HBASE-11990-20140919-v8.patch, HBASE-11990-20140921-v9.patch, HBASE-11990-20140923-v10.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)
[jira] [Updated] (HBASE-11990) Make setting the start and stop row for a specific prefix easier
[ https://issues.apache.org/jira/browse/HBASE-11990?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Niels Basjes updated HBASE-11990: - Status: Patch Available (was: Open) 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-v5.patch, HBASE-11990-20140916-v6.patch, HBASE-11990-20140916.patch, HBASE-11990-20140917-v7.patch, HBASE-11990-20140919-v8.patch, HBASE-11990-20140921-v9.patch, HBASE-11990-20140923-v10.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)
[jira] [Updated] (HBASE-11990) Make setting the start and stop row for a specific prefix easier
[ https://issues.apache.org/jira/browse/HBASE-11990?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Jean-Marc Spaggiari updated HBASE-11990: Status: Open (was: Patch Available) 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-v5.patch, HBASE-11990-20140916-v6.patch, HBASE-11990-20140916.patch, HBASE-11990-20140917-v7.patch, HBASE-11990-20140919-v8.patch, HBASE-11990-20140921-v9.patch, HBASE-11990-20140923-v10.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)
[jira] [Updated] (HBASE-11990) Make setting the start and stop row for a specific prefix easier
[ https://issues.apache.org/jira/browse/HBASE-11990?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Jean-Marc Spaggiari updated HBASE-11990: Status: Patch Available (was: Open) I don't think it is related. Triggering Jenkins again to see... 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-v5.patch, HBASE-11990-20140916-v6.patch, HBASE-11990-20140916.patch, HBASE-11990-20140917-v7.patch, HBASE-11990-20140919-v8.patch, HBASE-11990-20140921-v9.patch, HBASE-11990-20140923-v10.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)
[jira] [Updated] (HBASE-11990) Make setting the start and stop row for a specific prefix easier
[ https://issues.apache.org/jira/browse/HBASE-11990?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Niels Basjes updated HBASE-11990: - Status: Open (was: Patch Available) 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-v5.patch, HBASE-11990-20140916-v6.patch, HBASE-11990-20140916.patch, HBASE-11990-20140917-v7.patch, HBASE-11990-20140919-v8.patch, HBASE-11990-20140921-v9.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)
[jira] [Updated] (HBASE-11990) Make setting the start and stop row for a specific prefix easier
[ https://issues.apache.org/jira/browse/HBASE-11990?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Niels Basjes updated HBASE-11990: - Status: Patch Available (was: Open) 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-v5.patch, HBASE-11990-20140916-v6.patch, HBASE-11990-20140916.patch, HBASE-11990-20140917-v7.patch, HBASE-11990-20140919-v8.patch, HBASE-11990-20140921-v9.patch, HBASE-11990-20140923-v10.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)
[jira] [Updated] (HBASE-11990) Make setting the start and stop row for a specific prefix easier
[ https://issues.apache.org/jira/browse/HBASE-11990?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Niels Basjes updated HBASE-11990: - Attachment: HBASE-11990-20140923-v10.patch This patch reverts back to the method of calculating the correct the stopRow and startRow to scan for the desired rows. The method indicated by Lars is easier to understand, yet when doing a multithreaded query of the data (i.e. MapReduce) will start many mappers that are not needed at all and that could have been avoided beforehand. I have revised and clarified both the documentation and method naming to better clarify the distinction between the start/stop *Row* and the fact that we are looking for rowKey *Prefixes*. Just to be clear; Doing a prefix scan right is a hard problem. Just look at all the good discussion that this ticket triggered about all the ways it can be done and what the various pros and cons are. My intend with this patch has always been to solve this problem in such a way that doing a prefix scan will be a trivial task in the future. 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-v5.patch, HBASE-11990-20140916-v6.patch, HBASE-11990-20140916.patch, HBASE-11990-20140917-v7.patch, HBASE-11990-20140919-v8.patch, HBASE-11990-20140921-v9.patch, HBASE-11990-20140923-v10.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)
[jira] [Updated] (HBASE-11990) Make setting the start and stop row for a specific prefix easier
[ https://issues.apache.org/jira/browse/HBASE-11990?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Niels Basjes updated HBASE-11990: - Status: Patch Available (was: Open) 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-v5.patch, HBASE-11990-20140916-v6.patch, HBASE-11990-20140916.patch, HBASE-11990-20140917-v7.patch, HBASE-11990-20140919-v8.patch, HBASE-11990-20140921-v9.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)
[jira] [Updated] (HBASE-11990) Make setting the start and stop row for a specific prefix easier
[ https://issues.apache.org/jira/browse/HBASE-11990?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Niels Basjes updated HBASE-11990: - Attachment: HBASE-11990-20140921-v9.patch This patch contains the following: hbase-client - In Scan the 'setRowPrefixFilter' (just a method rename, I have the feeling this name is better) hbase-server - I split the class TestFilterWithScanLimits into two parts: The testing facility (FilterTestingCluster) and the actual tests. - A new testing class (that uses FilterTestingCluster) TestScanRowPrefix intended to test the setRowPrefixFilter and the effects in relation to setFilter. hbase-book - Small modification in the HBase book. 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-v5.patch, HBASE-11990-20140916-v6.patch, HBASE-11990-20140916.patch, HBASE-11990-20140917-v7.patch, HBASE-11990-20140919-v8.patch, HBASE-11990-20140921-v9.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)
[jira] [Updated] (HBASE-11990) Make setting the start and stop row for a specific prefix easier
[ https://issues.apache.org/jira/browse/HBASE-11990?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Niels Basjes updated HBASE-11990: - Status: Open (was: Patch Available) 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-v5.patch, HBASE-11990-20140916-v6.patch, HBASE-11990-20140916.patch, HBASE-11990-20140917-v7.patch, HBASE-11990-20140919-v8.patch, HBASE-11990-20140921-v9.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)
[jira] [Updated] (HBASE-11990) Make setting the start and stop row for a specific prefix easier
[ https://issues.apache.org/jira/browse/HBASE-11990?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Niels Basjes updated HBASE-11990: - Status: Open (was: Patch Available) Working on a different approach as indicated by [~lhofhansl] 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-v5.patch, HBASE-11990-20140916-v6.patch, HBASE-11990-20140916.patch, HBASE-11990-20140917-v7.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)
[jira] [Updated] (HBASE-11990) Make setting the start and stop row for a specific prefix easier
[ https://issues.apache.org/jira/browse/HBASE-11990?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Niels Basjes updated HBASE-11990: - Attachment: HBASE-11990-20140919-v8.patch First version of the new approach. No unit tests yet because I do not know how to build them. 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-v5.patch, HBASE-11990-20140916-v6.patch, HBASE-11990-20140916.patch, HBASE-11990-20140917-v7.patch, HBASE-11990-20140919-v8.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)
[jira] [Updated] (HBASE-11990) Make setting the start and stop row for a specific prefix easier
[ https://issues.apache.org/jira/browse/HBASE-11990?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Niels Basjes updated HBASE-11990: - Status: Patch Available (was: Open) 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-v5.patch, HBASE-11990-20140916-v6.patch, HBASE-11990-20140916.patch, HBASE-11990-20140917-v7.patch, HBASE-11990-20140919-v8.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)
[jira] [Updated] (HBASE-11990) Make setting the start and stop row for a specific prefix easier
[ https://issues.apache.org/jira/browse/HBASE-11990?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Niels Basjes updated HBASE-11990: - Attachment: HBASE-11990-20140917-v7.patch - Improved the algorithm to do copy the data only once to the target location. - Added test to ensure the source data is not wiped (ensure the copy is done). 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-v5.patch, HBASE-11990-20140916-v6.patch, HBASE-11990-20140916.patch, HBASE-11990-20140917-v7.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)
[jira] [Updated] (HBASE-11990) Make setting the start and stop row for a specific prefix easier
[ https://issues.apache.org/jira/browse/HBASE-11990?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Niels Basjes updated HBASE-11990: - Status: Patch Available (was: Open) 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-v5.patch, HBASE-11990-20140916-v6.patch, HBASE-11990-20140916.patch, HBASE-11990-20140917-v7.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)
[jira] [Updated] (HBASE-11990) Make setting the start and stop row for a specific prefix easier
[ https://issues.apache.org/jira/browse/HBASE-11990?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Niels Basjes updated HBASE-11990: - Status: Open (was: Patch Available) 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-v5.patch, HBASE-11990-20140916-v6.patch, HBASE-11990-20140916.patch, HBASE-11990-20140917-v7.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)
[jira] [Updated] (HBASE-11990) Make setting the start and stop row for a specific prefix easier
[ https://issues.apache.org/jira/browse/HBASE-11990?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Niels Basjes updated HBASE-11990: - Attachment: HBASE-11990-20140916.patch Proposed patch. This also fixes the same documentation issue from HBASE-9035 in the javadoc of the setStopRow method. 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: 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 { 0x12, 0x23, 0xFF, 0xFF }. Then the increment should be { 0x12, 0x24, 0x00, 0x00 }. 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)
[jira] [Updated] (HBASE-11990) Make setting the start and stop row for a specific prefix easier
[ https://issues.apache.org/jira/browse/HBASE-11990?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Niels Basjes updated HBASE-11990: - Description: 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, 0x00, 0x00 }{code} I have prepared a proposed patch that makes setting these values correctly a lot easier. was: 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 { 0x12, 0x23, 0xFF, 0xFF }. Then the increment should be { 0x12, 0x24, 0x00, 0x00 }. I have prepared a proposed patch that makes setting these values correctly a lot easier. 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: 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, 0x00, 0x00 }{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)
[jira] [Updated] (HBASE-11990) Make setting the start and stop row for a specific prefix easier
[ https://issues.apache.org/jira/browse/HBASE-11990?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Niels Basjes updated HBASE-11990: - Attachment: HBASE-11990-20140916-v2.patch - Improved the javadoc - Changed the behavior to remove the trailing 0x00 as indicated by [~anew] - Added a test for empty byte[] 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: HBASE-11990-20140916-v2.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, 0x00, 0x00 }{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)
[jira] [Updated] (HBASE-11990) Make setting the start and stop row for a specific prefix easier
[ https://issues.apache.org/jira/browse/HBASE-11990?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Niels Basjes updated HBASE-11990: - Release Note: Added new method to easily scan for a specific row prefix Status: Patch Available (was: Open) 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: HBASE-11990-20140916-v2.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, 0x00, 0x00 }{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)
[jira] [Updated] (HBASE-11990) Make setting the start and stop row for a specific prefix easier
[ https://issues.apache.org/jira/browse/HBASE-11990?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Niels Basjes updated HBASE-11990: - Description: 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. was: 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, 0x00, 0x00 }{code} I have prepared a proposed patch that makes setting these values correctly a lot easier. 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: HBASE-11990-20140916-v2.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)
[jira] [Updated] (HBASE-11990) Make setting the start and stop row for a specific prefix easier
[ https://issues.apache.org/jira/browse/HBASE-11990?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Niels Basjes updated HBASE-11990: - Status: Open (was: Patch Available) 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: HBASE-11990-20140916-v2.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)
[jira] [Updated] (HBASE-11990) Make setting the start and stop row for a specific prefix easier
[ https://issues.apache.org/jira/browse/HBASE-11990?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Niels Basjes updated HBASE-11990: - Attachment: HBASE-11990-20140916-v3.patch Fixed the import that my IDE 'optimized' 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: 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)
[jira] [Updated] (HBASE-11990) Make setting the start and stop row for a specific prefix easier
[ https://issues.apache.org/jira/browse/HBASE-11990?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Niels Basjes updated HBASE-11990: - Status: Patch Available (was: Open) 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: 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)
[jira] [Updated] (HBASE-11990) Make setting the start and stop row for a specific prefix easier
[ 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)
[jira] [Updated] (HBASE-11990) Make setting the start and stop row for a specific prefix easier
[ https://issues.apache.org/jira/browse/HBASE-11990?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Niels Basjes updated HBASE-11990: - Status: Open (was: Patch Available) 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)
[jira] [Updated] (HBASE-11990) Make setting the start and stop row for a specific prefix easier
[ https://issues.apache.org/jira/browse/HBASE-11990?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Niels Basjes updated HBASE-11990: - Attachment: HBASE-11990-20140916-v5.patch My branch was too stale. Now created using {code}git diff HBASE-11990-20140916-v5.patch{code} 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-v5.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)
[jira] [Updated] (HBASE-11990) Make setting the start and stop row for a specific prefix easier
[ https://issues.apache.org/jira/browse/HBASE-11990?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Niels Basjes updated HBASE-11990: - Status: Patch Available (was: Open) 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-v5.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)
[jira] [Updated] (HBASE-11990) Make setting the start and stop row for a specific prefix easier
[ https://issues.apache.org/jira/browse/HBASE-11990?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Niels Basjes updated HBASE-11990: - Attachment: HBASE-11990-20140916-v6.patch [~enis] Sorry I missed your comment about the name of the method. Makes a lot of sense. I changed it into {code}public Scan setStopRowPrefixInclusive(byte[] stopRowPrefix){code} Also note that I haven't changed my code even though there were several errors (javadoc, findbugs and such) in the previous build. I seems these errors are either not related to my patch or I'm unable to figure out what the actual error is. 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-v5.patch, HBASE-11990-20140916-v6.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)
[jira] [Updated] (HBASE-11990) Make setting the start and stop row for a specific prefix easier
[ https://issues.apache.org/jira/browse/HBASE-11990?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Niels Basjes updated HBASE-11990: - Status: Patch Available (was: Open) 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-v5.patch, HBASE-11990-20140916-v6.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)
[jira] [Updated] (HBASE-11990) Make setting the start and stop row for a specific prefix easier
[ https://issues.apache.org/jira/browse/HBASE-11990?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Niels Basjes updated HBASE-11990: - Status: Open (was: Patch Available) 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-v5.patch, HBASE-11990-20140916-v6.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)