Class SegmentSchemaBackFillQueue
java.lang.Object
org.apache.druid.segment.metadata.SegmentSchemaBackFillQueue
This class publishes the segment schema for segments obtained via segment metadata query.
It maintains a queue which is populated by
CoordinatorSegmentMetadataCache.-
Constructor Summary
ConstructorsConstructorDescriptionSegmentSchemaBackFillQueue(SegmentSchemaManager segmentSchemaManager, ScheduledExecutorFactory scheduledExecutorFactory, SegmentSchemaCache segmentSchemaCache, FingerprintGenerator fingerprintGenerator, ServiceEmitter emitter, CentralizedDatasourceSchemaConfig config) -
Method Summary
Modifier and TypeMethodDescriptionvoidadd(SegmentId segmentId, SchemaPayloadPlus schemaMetadata) booleanvoidvoidvoidvoidstop()
-
Constructor Details
-
SegmentSchemaBackFillQueue
@Inject public SegmentSchemaBackFillQueue(SegmentSchemaManager segmentSchemaManager, ScheduledExecutorFactory scheduledExecutorFactory, SegmentSchemaCache segmentSchemaCache, FingerprintGenerator fingerprintGenerator, ServiceEmitter emitter, CentralizedDatasourceSchemaConfig config)
-
-
Method Details
-
stop
public void stop() -
onLeaderStart
public void onLeaderStart() -
onLeaderStop
public void onLeaderStop() -
add
-
isEnabled
public boolean isEnabled() -
processBatchesDue
public void processBatchesDue()
-