Class TimeBasedTierSegmentSelector

    • Constructor Detail

      • TimeBasedTierSegmentSelector

        public TimeBasedTierSegmentSelector​(org.apache.helix.HelixManager helixManager,
                                            String segmentAge)
    • Method Detail

      • selectSegment

        public boolean selectSegment​(String tableNameWithType,
                                     String segmentName)
        Checks if a segment is eligible for the tier based on the segment age i.e. the end time of the segment from zk metadata
        Specified by:
        selectSegment in interface TierSegmentSelector
        Parameters:
        tableNameWithType - Name of the table
        segmentName - Name of the segment
        Returns:
        true if eligible
      • getSegmentAgeMillis

        public long getSegmentAgeMillis()
        Gets the age cutoff for segments accepted by this strategy