HBASE-20892 [UI] Start / End keys are empty on table.jsp

This commit is contained in:
Guangxu Cheng 2018-09-03 11:12:53 +08:00
parent c6a65ba63f
commit b62ac3cb11
1 changed files with 4 additions and 4 deletions

View File

@ -84,7 +84,7 @@
final String escaped_fqtn = StringEscapeUtils.escapeHtml4(fqtn);
String sortKey = request.getParameter("sort");
String reverse = request.getParameter("reverse");
final boolean reverseOrder = (reverse==null||!reverse.equals("false"));
final boolean reverseOrder = (reverse != null && reverse.equals("true"));
String showWholeKey = request.getParameter("showwhole");
final boolean showWhole = (showWholeKey!=null && showWholeKey.equals("true"));
Table table;
@ -455,7 +455,7 @@ Sort As
<option value="locality">Locality</option>
</select>
Ascending<input type="checkbox" id="ascending" value="Ascending" style="margin-right:10px">
ShowDetailName&Start/End Key<input type="checkbox" id="showWhole" style="margin-right:10px">
ShowDetailName<input type="checkbox" id="showWhole" style="margin-right:10px">
<input type="button" id="submit" value="Reorder" onClick="reloadAsSort()" style="font-size: 12pt; width: 5em; margin-bottom: 5px" class="btn">
<p>
@ -634,8 +634,8 @@ ShowDetailName&Start/End Key<input type="checkbox" id="showWhole" style="margin-
<td><%= fileCount%></td>
<td><%= memSize%></td>
<td><%= locality%></td>
<td><%= escapeXml(showWhole?Bytes.toStringBinary(regionInfo.getStartKey()):"-")%></td>
<td><%= escapeXml(showWhole?Bytes.toStringBinary(regionInfo.getEndKey()):"-")%></td>
<td><%= escapeXml(Bytes.toStringBinary(regionInfo.getStartKey()))%></td>
<td><%= escapeXml(Bytes.toStringBinary(regionInfo.getEndKey()))%></td>
<td><%= state%></td>
<%
if (withReplica) {