hbase-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Yi Liang (JIRA)" <j...@apache.org>
Subject [jira] [Comment Edited] (HBASE-16381) Shell deleteall command should support row key prefixes
Date Thu, 25 Aug 2016 03:28:20 GMT

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

Yi Liang edited comment on HBASE-16381 at 8/25/16 3:27 AM:
-----------------------------------------------------------

Thanks for your feedback, the current deleteall is used to delete all cells in one row.  Just
like what you said, to delete rows having 'prefix' in one cell, we can either

(1)deleterows 't1', 'prefix', 'c1' 
(2)deleteall 't1', {ROWPREFIXFILTER=>'prefix'}, c1

if we want to delete all rows in a cell, we may use '' empty string
(1) deleterows 't1', '', 'c1'
(2) deleteall 't1',{ROWPREFIXFILTER=>''}, 'c1'


But I think using new command is better, since deleteall is only for deleting one row, extend
it to delete multiple rows can make this command not so consistent. 


was (Author: easyliangjob):
Thanks for your feedback, the current deleteall is used to delete all cells in one row.  Just
like what you said, to delete rows having 'prefix' in one cell, we can 

(1)deleterows 't1', 'prefix', 'c1'  ====> add new command
(2)deleteall 't1', {ROWPREFIXFILTER=>'prefix'}, c1 ==> extend old one

if we want to delete all rows in a cell, we may use '' empty string
(1) deleterows 't1', '', 'c1'
(2) deleteall 't1',{ROWPREFIXFILTER=>''}, 'c1'


But I think using new command is better, since deleteall is only for deleting one row, extend
it to delete multiple rows can make this command not so consistent. 

> Shell deleteall command should support row key prefixes
> -------------------------------------------------------
>
>                 Key: HBASE-16381
>                 URL: https://issues.apache.org/jira/browse/HBASE-16381
>             Project: HBase
>          Issue Type: Improvement
>          Components: shell
>            Reporter: Andrew Purtell
>            Assignee: Yi Liang
>            Priority: Minor
>             Fix For: 2.0.0
>
>         Attachments: HBASE-16381-V1.patch, HBASE-16381-V2.patch
>
>
> The shell's deleteall command should support deleting a row range using a row key prefix.




--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message