Package com.linkedin.venice.utils
Class RegionUtils
- java.lang.Object
-
- com.linkedin.venice.utils.RegionUtils
-
public class RegionUtils extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description RegionUtils()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static java.lang.String
composeRegionList(java.util.Set<java.lang.String> regions)
A helper function to compose a region list withREGION_FILTER_LIST_SEPARATOR
.static java.lang.String
getLocalRegionName(VeniceProperties props, boolean isParentRegion)
static java.lang.String
getRegionSpecificMetricPrefix(java.lang.String localRegionName, java.lang.String regionName)
static java.util.Set<java.lang.String>
parseRegionsFilterList(java.lang.String regionsFilterList)
A helper function to split a region list withREGION_FILTER_LIST_SEPARATOR
-
-
-
Method Detail
-
getLocalRegionName
public static java.lang.String getLocalRegionName(VeniceProperties props, boolean isParentRegion)
-
getRegionSpecificMetricPrefix
public static java.lang.String getRegionSpecificMetricPrefix(java.lang.String localRegionName, java.lang.String regionName)
-
parseRegionsFilterList
public static java.util.Set<java.lang.String> parseRegionsFilterList(java.lang.String regionsFilterList)
A helper function to split a region list withREGION_FILTER_LIST_SEPARATOR
-
composeRegionList
public static java.lang.String composeRegionList(java.util.Set<java.lang.String> regions)
A helper function to compose a region list withREGION_FILTER_LIST_SEPARATOR
. This is the reverse ofparseRegionsFilterList(String)
.- Parameters:
regions
- , a set of regions- Returns:
- a string of regions separated by
REGION_FILTER_LIST_SEPARATOR
-
-