HBASE-886, HBASE-895 Sort the tables in the web UI [shell] 'list' command should emit a sorted list of tables

git-svn-id: https://svn.apache.org/repos/asf/hadoop/hbase/trunk@698088 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Michael Stack 2008-09-23 04:04:50 +00:00
parent c912849278
commit aa419f96dd
2 changed files with 5 additions and 3 deletions

View File

@ -11,6 +11,8 @@ Release 0.19.0 - Unreleased
(Sishen Freecity via Stack)
HBASE-894 [shell] Should be able to copy-paste table description to create
new table (Sishen Freecity via Stack)
HBASE-886, HBASE-895 Sort the tables in the web UI, [shell] 'list' command
should emit a sorted list of tables (Krzysztof Szlapinski via Stack)
NEW FEATURES

View File

@ -24,9 +24,9 @@ import java.lang.reflect.UndeclaredThrowableException;
import java.util.ArrayList;
import java.util.Collections;
import java.util.HashMap;
import java.util.HashSet;
import java.util.List;
import java.util.Map;
import java.util.TreeSet;
import java.util.concurrent.ConcurrentHashMap;
import org.apache.commons.logging.Log;
@ -277,8 +277,8 @@ public class HConnectionManager implements HConstants {
public HTableDescriptor[] listTables() throws IOException {
getMaster();
final HashSet<HTableDescriptor> uniqueTables =
new HashSet<HTableDescriptor>();
final TreeSet<HTableDescriptor> uniqueTables =
new TreeSet<HTableDescriptor>();
MetaScannerVisitor visitor = new MetaScannerVisitor() {