[ 
https://issues.apache.org/jira/browse/CASSANDRA-1592?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

jian yang updated CASSANDRA-1592:
---------------------------------

    Attachment: cassandra-0.6.5_key_regex.patch

This patch adds an extra field key_regex in KeyRange. It will used to filter 
keys in ColumnFamilyStore#getKeyRange(). If key_regex is null, empty string or 
special regex ".*", the matching progress is skipped. The default value of 
key_regex is null. So this patch should be compatible with existing client code.

> Apply regular expression to row keys
> ------------------------------------
>
>                 Key: CASSANDRA-1592
>                 URL: https://issues.apache.org/jira/browse/CASSANDRA-1592
>             Project: Cassandra
>          Issue Type: New Feature
>          Components: API
>            Reporter: zhu han
>            Priority: Minor
>         Attachments: cassandra-0.6.5_key_regex.patch
>
>
> Sometimes, the client needs to apply advanced filtering to row keys to carry 
> out ad-hoc queries.  Current implementation only supports prefix-match row 
> filtering. This ticket is to extend the get_range_slices() API to filter the 
> row keys by regular expression. 
> It can also be extended to filter the column names by regex.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to