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

Samuel Guo commented on HBASE-961:
----------------------------------

> Why COLFAMILY_REGEX in HBaseTestCase.java and not in TestDeleteFamily.java 
> where it is only place used? (I'm guessing you are trying to follow a 
> discerned patten?)

hmm, yes, it is only place used. I will change it.

> Is the regex correct? Seems like it does not allow for the ':' columnfamily 
> delimiter character? colA in your test is 'colfamily1:a' if I read it right 
> and a regex of "col[a-zA-Z]*1" won't match? (Whats the '1' on the end for?).

ColumnFamily Regex just match the family name without the ':' columnfamily 
delimiter character. 
colA colB in the family regex test belongs to the family "colfamily1", and it 
matches the regex "col[a-zA-Z]*1"

> Is deleteFamilyByRegex needed? Or is it that deleteAllByRegex can't be made 
> do this operation?
deleteFamilyRegex will be better than deleteAllByRegex if we all to delete all 
the columns whose family name match the regex.
because deleteFamilyByRegex will skip the HStores whose family name dosen't 
match the familyname regex.
And if use deleteAllByRegex to delete those families, it will scan all the 
HStores to match.


> Delete multiple columns by regular expression
> ---------------------------------------------
>
>                 Key: HBASE-961
>                 URL: https://issues.apache.org/jira/browse/HBASE-961
>             Project: Hadoop HBase
>          Issue Type: New Feature
>          Components: client
>         Environment: HBase 0.18.0
>            Reporter: Slava
>            Assignee: Samuel Guo
>         Attachments: HBASE-961.patch
>
>
> Hi.
> I tried to find a way to delete multiple columns that their names match some 
> regular expression, but this functionality is missing (i think).
> Is it possible to add such functionality ?

-- 
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