Package org.apache.hadoop.hbase.client
Class RegionInfoDisplay
java.lang.Object
org.apache.hadoop.hbase.client.RegionInfoDisplay
Utility used composing RegionInfo for 'display'; e.g. on the web UI
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic String
getDescriptiveNameFromRegionStateForDisplay
(RegionState state, org.apache.hadoop.conf.Configuration conf) Get the descriptive name asRegionState
does it but with hidden startkey optionallystatic byte[]
getEndKeyForDisplay
(RegionInfo ri, org.apache.hadoop.conf.Configuration conf) Get the end key for display.static String
getRegionNameAsStringForDisplay
(RegionInfo ri, org.apache.hadoop.conf.Configuration conf) Get the region name for display.static byte[]
getRegionNameForDisplay
(RegionInfo ri, org.apache.hadoop.conf.Configuration conf) Get the region name for display.static byte[]
getStartKeyForDisplay
(RegionInfo ri, org.apache.hadoop.conf.Configuration conf) Get the start key for display.
-
Field Details
-
DISPLAY_KEYS_KEY
- See Also:
-
HIDDEN_END_KEY
-
HIDDEN_START_KEY
-
-
Constructor Details
-
RegionInfoDisplay
public RegionInfoDisplay()
-
-
Method Details
-
getDescriptiveNameFromRegionStateForDisplay
public static String getDescriptiveNameFromRegionStateForDisplay(RegionState state, org.apache.hadoop.conf.Configuration conf) Get the descriptive name asRegionState
does it but with hidden startkey optionally- Returns:
- descriptive string
-
getEndKeyForDisplay
Get the end key for display. Optionally hide the real end key.- Returns:
- the endkey
-
getStartKeyForDisplay
public static byte[] getStartKeyForDisplay(RegionInfo ri, org.apache.hadoop.conf.Configuration conf) Get the start key for display. Optionally hide the real start key.- Returns:
- the startkey
-
getRegionNameAsStringForDisplay
public static String getRegionNameAsStringForDisplay(RegionInfo ri, org.apache.hadoop.conf.Configuration conf) Get the region name for display. Optionally hide the start key.- Returns:
- region name as String
-
getRegionNameForDisplay
public static byte[] getRegionNameForDisplay(RegionInfo ri, org.apache.hadoop.conf.Configuration conf) Get the region name for display. Optionally hide the start key.- Returns:
- region name bytes
-