incubator-blur-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From g...@apache.org
Subject git commit: BLUR-301 List command output should be sorted
Date Thu, 21 Nov 2013 09:29:22 GMT
Updated Branches:
  refs/heads/master 0e91346dc -> 2f18b3592


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/2f18b359
Tree: http://git-wip-us.apache.org/repos/asf/incubator-blur/tree/2f18b359
Diff: http://git-wip-us.apache.org/repos/asf/incubator-blur/diff/2f18b359

Branch: refs/heads/master
Commit: 2f18b359213f85158c802afbede4317b9a82d479
Parents: 0e91346
Author: Gagan <gagandeepjuneja@gmail.com>
Authored: Thu Nov 21 14:57:03 2013 +0530
Committer: Gagan <gagandeepjuneja@gmail.com>
Committed: Thu Nov 21 14:57:03 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/2f18b359/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);
     }


Mime
View raw message