HBASE-6972 HBase Shell deleteall should not require column to be defined (Ricky)

git-svn-id: https://svn.apache.org/repos/asf/hbase/trunk@1401115 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Zhihong Yu 2012-10-22 22:56:54 +00:00
parent 2c4b5f74d7
commit 871618c19b
1 changed files with 4 additions and 2 deletions

View File

@ -38,11 +38,13 @@ t to table 't1', the corresponding command would be:
EOF EOF
end end
def command(table, row, column, timestamp = org.apache.hadoop.hbase.HConstants::LATEST_TIMESTAMP) def command(table, row, column,
timestamp = org.apache.hadoop.hbase.HConstants::LATEST_TIMESTAMP)
deleteall(table(table), row, column, timestamp) deleteall(table(table), row, column, timestamp)
end end
def deleteall(table, row, column = nil, timestamp = org.apache.hadoop.hbase.HConstants::LATEST_TIMESTAMP) def deleteall(table, row, column = nil,
timestamp = org.apache.hadoop.hbase.HConstants::LATEST_TIMESTAMP)
format_simple_command do format_simple_command do
table._deleteall_internal(row, column, timestamp) table._deleteall_internal(row, column, timestamp)
end end