Package org.apache.pinot.common.tier
Class FixedTierSegmentSelector
- java.lang.Object
-
- org.apache.pinot.common.tier.FixedTierSegmentSelector
-
- All Implemented Interfaces:
TierSegmentSelector
public class FixedTierSegmentSelector extends Object implements TierSegmentSelector
ATierSegmentSelectorstrategy which selects segments for a tier based on a fixed list
-
-
Constructor Summary
Constructors Constructor Description FixedTierSegmentSelector(org.apache.helix.HelixManager helixManager, Set<String> segmentsToSelect)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Set<String>getSegmentsToSelect()StringgetType()The type of the segment selector (e.g.booleanselectSegment(String tableNameWithType, String segmentName)Checks if a segment is eligible for the tier based on fixed listStringtoString()
-
-
-
Method Detail
-
getType
public String getType()
Description copied from interface:TierSegmentSelectorThe type of the segment selector (e.g. TIME)- Specified by:
getTypein interfaceTierSegmentSelector
-
selectSegment
public boolean selectSegment(String tableNameWithType, String segmentName)
Checks if a segment is eligible for the tier based on fixed list- Specified by:
selectSegmentin interfaceTierSegmentSelector- Parameters:
tableNameWithType- Name of the tablesegmentName- Name of the segment- Returns:
- true if eligible
-
-