Class TierConfigUtils
- java.lang.Object
-
- org.apache.pinot.common.utils.config.TierConfigUtils
-
public final class TierConfigUtils extends Object
Util methods for TierConfig
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description 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 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
-
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,
-
-