public static byte[] getEndKeyForDisplay(RegionInfo ri, Configuration conf) {
    boolean displayKey = conf.getBoolean(DISPLAY_KEYS_KEY, true);
    if (displayKey) return ri.getEndKey();
    return HIDDEN_END_KEY;
  }
Get the end key for display. Optionally hide the real end key.
@return the endkey
hbase-client/src/main/java/org/apache/hadoop/hbase/client/RegionInfoDisplay.java