HBASE-12011 Add namespace column during display of user tables (Srikanth Srungarapu)

This commit is contained in:
Ted Yu 2014-10-06 16:45:33 +00:00
parent 3533820efb
commit 8a50a0cce7
1 changed files with 4 additions and 2 deletions

View File

@ -352,6 +352,7 @@ AssignmentManager assignmentManager = master.getAssignmentManager();
<%if (tables != null && tables.length > 0)%>
<table class="table table-striped">
<tr>
<th>Namespace</th>
<th>Table Name</th>
<%if (frags != null) %>
<th title="Fragmentation - Will be 0% after a major compaction and fluctuate during normal usage.">Frag.</th>
@ -361,9 +362,10 @@ AssignmentManager assignmentManager = master.getAssignmentManager();
</tr>
<%for HTableDescriptor htDesc : tables%>
<tr>
<td><a href=table.jsp?name=<% htDesc.getTableName().getNameAsString() %>><% htDesc.getTableName().getNameAsString() %></a> </td>
<td><% htDesc.getTableName().getNamespaceAsString() %></td>
<td><a href=table.jsp?name=<% htDesc.getTableName().getNameAsString() %>><% htDesc.getTableName().getQualifierAsString() %></a> </td>
<%if (frags != null) %>
<td align="center"><% frags.get(htDesc.getTableName().getNameAsString()) != null ? frags.get(htDesc.getTableName().getNameAsString()).intValue() + "%" : "n/a" %></td>
<td align="center"><% frags.get(htDesc.getTableName().getNameAsString()) != null ? frags.get(htDesc.getTableName().getQualifierAsString()).intValue() + "%" : "n/a" %></td>
</%if>
<td><% master.getAssignmentManager().getRegionStates().getRegionsOfTable(htDesc
.getTableName()).size() %>