From 871618c19bc736345dd050a155cb3e2ec9336594 Mon Sep 17 00:00:00 2001 From: Zhihong Yu Date: Mon, 22 Oct 2012 22:56:54 +0000 Subject: [PATCH] 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 --- hbase-server/src/main/ruby/shell/commands/deleteall.rb | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/hbase-server/src/main/ruby/shell/commands/deleteall.rb b/hbase-server/src/main/ruby/shell/commands/deleteall.rb index 2be89e7ec08..e7a5ecd50dc 100644 --- a/hbase-server/src/main/ruby/shell/commands/deleteall.rb +++ b/hbase-server/src/main/ruby/shell/commands/deleteall.rb @@ -38,11 +38,13 @@ t to table 't1', the corresponding command would be: EOF 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) 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 table._deleteall_internal(row, column, timestamp) end