Interface SegmentActionHandler

  • All Known Implementing Classes:
    StrategicSegmentAssigner

    public interface SegmentActionHandler
    Performs various actions on a given segment. Used by Rules to load, drop, broadcast or delete segments.
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      void broadcastSegment​(org.apache.druid.timeline.DataSegment segment)
      Broadcasts the given segment to all servers that are broadcast targets.
      void deleteSegment​(org.apache.druid.timeline.DataSegment segment)
      Marks the given segment as unused.
      void replicateSegment​(org.apache.druid.timeline.DataSegment segment, Map<String,​Integer> tierToReplicaCount)
      Queues load or drop of replicas of the given segment to achieve the target replication level on all historical tiers.
    • Method Detail

      • replicateSegment

        void replicateSegment​(org.apache.druid.timeline.DataSegment segment,
                              Map<String,​Integer> tierToReplicaCount)
        Queues load or drop of replicas of the given segment to achieve the target replication level on all historical tiers.
      • deleteSegment

        void deleteSegment​(org.apache.druid.timeline.DataSegment segment)
        Marks the given segment as unused. Unused segments are eventually unloaded from all servers and deleted from metadata as well as deep storage.
      • broadcastSegment

        void broadcastSegment​(org.apache.druid.timeline.DataSegment segment)
        Broadcasts the given segment to all servers that are broadcast targets.