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:
parent
c912849278
commit
aa419f96dd
|
@ -11,6 +11,8 @@ Release 0.19.0 - Unreleased
|
||||||
(Sishen Freecity via Stack)
|
(Sishen Freecity via Stack)
|
||||||
HBASE-894 [shell] Should be able to copy-paste table description to create
|
HBASE-894 [shell] Should be able to copy-paste table description to create
|
||||||
new table (Sishen Freecity via Stack)
|
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
|
NEW FEATURES
|
||||||
|
|
||||||
|
|
|
@ -24,9 +24,9 @@ import java.lang.reflect.UndeclaredThrowableException;
|
||||||
import java.util.ArrayList;
|
import java.util.ArrayList;
|
||||||
import java.util.Collections;
|
import java.util.Collections;
|
||||||
import java.util.HashMap;
|
import java.util.HashMap;
|
||||||
import java.util.HashSet;
|
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
import java.util.Map;
|
import java.util.Map;
|
||||||
|
import java.util.TreeSet;
|
||||||
import java.util.concurrent.ConcurrentHashMap;
|
import java.util.concurrent.ConcurrentHashMap;
|
||||||
|
|
||||||
import org.apache.commons.logging.Log;
|
import org.apache.commons.logging.Log;
|
||||||
|
@ -277,8 +277,8 @@ public class HConnectionManager implements HConstants {
|
||||||
|
|
||||||
public HTableDescriptor[] listTables() throws IOException {
|
public HTableDescriptor[] listTables() throws IOException {
|
||||||
getMaster();
|
getMaster();
|
||||||
final HashSet<HTableDescriptor> uniqueTables =
|
final TreeSet<HTableDescriptor> uniqueTables =
|
||||||
new HashSet<HTableDescriptor>();
|
new TreeSet<HTableDescriptor>();
|
||||||
|
|
||||||
MetaScannerVisitor visitor = new MetaScannerVisitor() {
|
MetaScannerVisitor visitor = new MetaScannerVisitor() {
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue