Class NoopDataSegmentAnnouncer
java.lang.Object
org.apache.druid.server.coordination.NoopDataSegmentAnnouncer
- All Implemented Interfaces:
DataSegmentAnnouncer
Mostly used for test purpose.
-
Constructor Summary
Constructors -
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)
-
Constructor Details
-
NoopDataSegmentAnnouncer
public NoopDataSegmentAnnouncer()
-
-
Method Details
-
announceSegment
- Specified by:
announceSegmentin interfaceDataSegmentAnnouncer
-
unannounceSegment
- Specified by:
unannounceSegmentin interfaceDataSegmentAnnouncer
-
announceSegments
- Specified by:
announceSegmentsin interfaceDataSegmentAnnouncer
-
unannounceSegments
- Specified by:
unannounceSegmentsin interfaceDataSegmentAnnouncer
-
announceSegmentSchemas
public void announceSegmentSchemas(String taskId, SegmentSchemas segmentSchemas, SegmentSchemas segmentSchemasChange) Description copied from interface:DataSegmentAnnouncerAnnounces schema associated with all segments for the specified realtime task.- Specified by:
announceSegmentSchemasin interfaceDataSegmentAnnouncer- Parameters:
taskId- taskIdsegmentSchemas- absolute schema for all sinks, in case the client requests full sync.segmentSchemasChange- schema change for all sinks
-
removeSegmentSchemasForTask
Description copied from interface:DataSegmentAnnouncerRemoves schema associated with all segments for the specified realtime task.- Specified by:
removeSegmentSchemasForTaskin interfaceDataSegmentAnnouncer- Parameters:
taskId- taskId
-