Interface DataSegmentAnnouncer
- All Known Implementing Classes:
BatchDataSegmentAnnouncer,NoopDataSegmentAnnouncer
public interface DataSegmentAnnouncer
-
Method Summary
Modifier and TypeMethodDescriptionvoidannounceSegment(DataSegment segment) voidannounceSegments(Iterable<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(DataSegment segment) voidunannounceSegments(Iterable<DataSegment> segments)
-
Method Details
-
announceSegment
- Throws:
IOException
-
unannounceSegment
-
announceSegments
- Throws:
IOException
-
unannounceSegments
-
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
Removes schema associated with all segments for the specified realtime task.- Parameters:
taskId- taskId
-