Class NoopDataSegmentAnnouncer
- java.lang.Object
-
- org.apache.druid.server.coordination.NoopDataSegmentAnnouncer
-
- All Implemented Interfaces:
DataSegmentAnnouncer
public class NoopDataSegmentAnnouncer extends Object implements DataSegmentAnnouncer
Mostly used for test purpose.
-
-
Constructor Summary
Constructors Constructor Description NoopDataSegmentAnnouncer()
-
Method Summary
All Methods Instance Methods Concrete 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
public void announceSegment(org.apache.druid.timeline.DataSegment segment)
- Specified by:
announceSegmentin interfaceDataSegmentAnnouncer
-
unannounceSegment
public void unannounceSegment(org.apache.druid.timeline.DataSegment segment)
- Specified by:
unannounceSegmentin interfaceDataSegmentAnnouncer
-
announceSegments
public void announceSegments(Iterable<org.apache.druid.timeline.DataSegment> segments)
- Specified by:
announceSegmentsin interfaceDataSegmentAnnouncer
-
unannounceSegments
public void unannounceSegments(Iterable<org.apache.druid.timeline.DataSegment> segments)
- 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
public void removeSegmentSchemasForTask(String taskId)
Description copied from interface:DataSegmentAnnouncerRemoves schema associated with all segments for the specified realtime task.- Specified by:
removeSegmentSchemasForTaskin interfaceDataSegmentAnnouncer- Parameters:
taskId- taskId
-
-