Class TierConfigUtils
- java.lang.Object
-
- org.apache.pinot.common.utils.config.TierConfigUtils
-
public final class TierConfigUtils extends Object
Util methods for TierConfig
-
-
Method Summary
Modifier and Type Method Description static StringgetDataDirForTier(TableConfig tableConfig, String tierName)static StringgetDataDirForTier(TableConfig tableConfig, String tierName, Map<String,Map<String,String>> instanceTierConfigs)static List<Tier>getSortedTiers(List<TierConfig> tierConfigList, org.apache.helix.HelixManager helixManager)Gets sorted list of tiers from provided list of TierConfigstatic List<Tier>getSortedTiersForStorageType(List<TierConfig> tierConfigList, String storageType, org.apache.helix.HelixManager helixManager)Gets sorted list of tiers for given storage type from provided list of TierConfigstatic Comparator<Tier>getTierComparator()Comparator for sorting theTier.static StringnormalizeTierName(String tierName)static booleanshouldRelocateToTiers(TableConfig tableConfig)Returns whether relocation of segments to tiers has been enabled for this table
-
-
-
Method Detail
-
shouldRelocateToTiers
public static boolean shouldRelocateToTiers(TableConfig tableConfig)
Returns whether relocation of segments to tiers has been enabled for this table
-
getDataDirForTier
public static String getDataDirForTier(TableConfig tableConfig, String tierName)
-
getDataDirForTier
public static String getDataDirForTier(TableConfig tableConfig, String tierName, Map<String,Map<String,String>> instanceTierConfigs)
-
getSortedTiersForStorageType
public static List<Tier> getSortedTiersForStorageType(List<TierConfig> tierConfigList, String storageType, org.apache.helix.HelixManager helixManager)
Gets sorted list of tiers for given storage type from provided list of TierConfig
-
getSortedTiers
public static List<Tier> getSortedTiers(List<TierConfig> tierConfigList, org.apache.helix.HelixManager helixManager)
Gets sorted list of tiers from provided list of TierConfig
-
getTierComparator
public static Comparator<Tier> getTierComparator()
Comparator for sorting theTier. In the sort order 1)FixedTierSegmentSelectorare always before others 2) ForTimeBasedTierSegmentSelector, tiers with an older age bucket appear before a younger age bucket,
-
-