Index: hbase-server/src/main/ruby/hbase/admin.rb =================================================================== --- hbase-server/src/main/ruby/hbase/admin.rb (revision 1397682) +++ hbase-server/src/main/ruby/hbase/admin.rb (working copy) @@ -38,8 +38,8 @@ #---------------------------------------------------------------------------------------------- # Returns a list of tables in hbase - def list - @admin.listTables.map { |t| t.getNameAsString } + def list(regex = ".*") + @admin.listTables(regex).map { |t| t.getNameAsString } end #---------------------------------------------------------------------------------------------- Index: hbase-server/src/main/ruby/shell/commands/list.rb =================================================================== --- hbase-server/src/main/ruby/shell/commands/list.rb (revision 1397682) +++ hbase-server/src/main/ruby/shell/commands/list.rb (working copy) @@ -34,8 +34,7 @@ now = Time.now formatter.header([ "TABLE" ]) - regex = /#{regex}/ unless regex.is_a?(Regexp) - list = admin.list.grep(regex) + list = admin.list(regex) list.each do |table| formatter.row([ table ]) end