Interface DataSegmentAnnouncer
-
- All Known Implementing Classes:
BatchDataSegmentAnnouncer,NoopDataSegmentAnnouncer
public interface DataSegmentAnnouncer
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidannounceSegment(org.apache.druid.timeline.DataSegment segment)voidannounceSegments(Iterable<org.apache.druid.timeline.DataSegment> segments)voidannounceSegmentSchemas(String taskId, SegmentSchemas segmentSchemas, SegmentSchemas segmentSchemasChange)Announces schema associated with all segments for the specified realtime task.voidremoveSegmentSchemasForTask(String taskId)Removes schema associated with all segments for the specified realtime task.voidunannounceSegment(org.apache.druid.timeline.DataSegment segment)voidunannounceSegments(Iterable<org.apache.druid.timeline.DataSegment> segments)
-
-
-
Method Detail
-
announceSegment
void announceSegment(org.apache.druid.timeline.DataSegment segment) throws IOException- Throws:
IOException
-
unannounceSegment
void unannounceSegment(org.apache.druid.timeline.DataSegment segment) throws IOException- Throws:
IOException
-
announceSegments
void announceSegments(Iterable<org.apache.druid.timeline.DataSegment> segments) throws IOException
- Throws:
IOException
-
unannounceSegments
void unannounceSegments(Iterable<org.apache.druid.timeline.DataSegment> segments) throws IOException
- Throws:
IOException
-
announceSegmentSchemas
void announceSegmentSchemas(String taskId, SegmentSchemas segmentSchemas, @Nullable SegmentSchemas segmentSchemasChange)
Announces schema associated with all segments for the specified realtime task.- Parameters:
taskId- taskIdsegmentSchemas- absolute schema for all sinks, in case the client requests full sync.segmentSchemasChange- schema change for all sinks
-
removeSegmentSchemasForTask
void removeSegmentSchemasForTask(String taskId)
Removes schema associated with all segments for the specified realtime task.- Parameters:
taskId- taskId
-
-