Updated Branches:
  refs/heads/apache-blur-0.2 1266c8169 -> 141b47943

BLUR-301 List command output should be sorted


Project: http://git-wip-us.apache.org/repos/asf/incubator-blur/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-blur/commit/141b4794
Tree: http://git-wip-us.apache.org/repos/asf/incubator-blur/tree/141b4794
Diff: http://git-wip-us.apache.org/repos/asf/incubator-blur/diff/141b4794

Branch: refs/heads/apache-blur-0.2
Commit: 141b47943eb83006034800a82ea5abe7f0c72c3c
Parents: 1266c81
Author: Gagan <[email protected]>
Authored: Thu Nov 21 15:33:08 2013 +0530
Committer: Gagan <[email protected]>
Committed: Thu Nov 21 15:33:08 2013 +0530

----------------------------------------------------------------------
 .../src/main/java/org/apache/blur/shell/ListTablesCommand.java     | 2 ++
 1 file changed, 2 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-blur/blob/141b4794/blur-shell/src/main/java/org/apache/blur/shell/ListTablesCommand.java
----------------------------------------------------------------------
diff --git 
a/blur-shell/src/main/java/org/apache/blur/shell/ListTablesCommand.java 
b/blur-shell/src/main/java/org/apache/blur/shell/ListTablesCommand.java
index f35f5dd..1413e07 100644
--- a/blur-shell/src/main/java/org/apache/blur/shell/ListTablesCommand.java
+++ b/blur-shell/src/main/java/org/apache/blur/shell/ListTablesCommand.java
@@ -19,6 +19,7 @@
 package org.apache.blur.shell;
 
 import java.io.PrintWriter;
+import java.util.Collections;
 import java.util.List;
 
 import org.apache.blur.thirdparty.thrift_0_9_0.TException;
@@ -31,6 +32,7 @@ public class ListTablesCommand extends Command {
       BlurException {
     
     List<String> tableList = 
client.tableListByCluster(Main.getCluster(client));
+    Collections.sort(tableList);
     for (String s : tableList) {
       out.println(s);
     }

Reply via email to