You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@hbase.apache.org by "Bruno Dumon (JIRA)" <ji...@apache.org> on 2010/02/12 11:12:27 UTC
[jira] Created: (HBASE-2220) Add a binary comparator that only
compares up to the length of the supplied byte array
Add a binary comparator that only compares up to the length of the supplied byte array
--------------------------------------------------------------------------------------
Key: HBASE-2220
URL: https://issues.apache.org/jira/browse/HBASE-2220
Project: Hadoop HBase
Issue Type: New Feature
Components: filters
Reporter: Bruno Dumon
Priority: Minor
Attachments: binary-prefix-comparator-patch.txt
This new comparator is similar to the existing BinaryComparator, but only compares up to the length of the supplied byte array.
The use-case I need this for is secondary indexes. I build a table where the row keys have the form {value}{row key}, where {value} is a fixed length byte array. On this index table I then would like to perform range scans on just the fixed length {value} part. The BinaryPrefixComparator supplied in this patch enables exactly this, when used in combination with the RowFilter.
See also mail at
http://mail-archives.apache.org/mod_mbox/hadoop-hbase-user/201002.mbox/%3Cf5a74c8e1002100716y56371298xc96e482a6486d939@mail.gmail.com%3E
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Resolved: (HBASE-2220) Add a binary comparator that only
compares up to the length of the supplied byte array
Posted by "stack (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/HBASE-2220?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
stack resolved HBASE-2220.
--------------------------
Resolution: Fixed
Fix Version/s: 0.21.0
0.20.4
Hadoop Flags: [Reviewed]
Applied patch to branch and trunk. Thank you Bruno.
> Add a binary comparator that only compares up to the length of the supplied byte array
> --------------------------------------------------------------------------------------
>
> Key: HBASE-2220
> URL: https://issues.apache.org/jira/browse/HBASE-2220
> Project: Hadoop HBase
> Issue Type: New Feature
> Components: filters
> Reporter: Bruno Dumon
> Priority: Minor
> Fix For: 0.20.4, 0.21.0
>
> Attachments: binary-prefix-comparator-patch.txt
>
>
> This new comparator is similar to the existing BinaryComparator, but only compares up to the length of the supplied byte array.
> The use-case I need this for is secondary indexes. I build a table where the row keys have the form {value}{row key}, where {value} is a fixed length byte array. On this index table I then would like to perform range scans on just the fixed length {value} part. The BinaryPrefixComparator supplied in this patch enables exactly this, when used in combination with the RowFilter.
> See also mail at
> http://mail-archives.apache.org/mod_mbox/hadoop-hbase-user/201002.mbox/%3Cf5a74c8e1002100716y56371298xc96e482a6486d939@mail.gmail.com%3E
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Updated: (HBASE-2220) Add a binary comparator that only
compares up to the length of the supplied byte array
Posted by "Bruno Dumon (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/HBASE-2220?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Bruno Dumon updated HBASE-2220:
-------------------------------
Attachment: binary-prefix-comparator-patch.txt
> Add a binary comparator that only compares up to the length of the supplied byte array
> --------------------------------------------------------------------------------------
>
> Key: HBASE-2220
> URL: https://issues.apache.org/jira/browse/HBASE-2220
> Project: Hadoop HBase
> Issue Type: New Feature
> Components: filters
> Reporter: Bruno Dumon
> Priority: Minor
> Attachments: binary-prefix-comparator-patch.txt
>
>
> This new comparator is similar to the existing BinaryComparator, but only compares up to the length of the supplied byte array.
> The use-case I need this for is secondary indexes. I build a table where the row keys have the form {value}{row key}, where {value} is a fixed length byte array. On this index table I then would like to perform range scans on just the fixed length {value} part. The BinaryPrefixComparator supplied in this patch enables exactly this, when used in combination with the RowFilter.
> See also mail at
> http://mail-archives.apache.org/mod_mbox/hadoop-hbase-user/201002.mbox/%3Cf5a74c8e1002100716y56371298xc96e482a6486d939@mail.gmail.com%3E
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.