Class CentralizedDatasourceSchemaConfig
java.lang.Object
org.apache.druid.segment.metadata.CentralizedDatasourceSchemaConfig
Config for caching and managing datasource schema on the Coordinator.
This config is used by the following services:
- Coordinator: to enable backfill of segment schema in the metadata store and caching of schema in memory.
- Overlord: to enable publish of schema when segments are committed.
- Peons: to enable inclusion of schema in segment publish requests.
- Brokers: to enable polling of cached schema from the Coordinator.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Stringstatic final intCurrently supported version of segment schema format. -
Constructor Summary
ConstructorsConstructorDescriptionCentralizedDatasourceSchemaConfig(Boolean enabled, Boolean backFillEnabled, Long backFillPeriod, Boolean taskSchemaPublishDisabled) -
Method Summary
-
Field Details
-
PROPERTY_PREFIX
- See Also:
-
SCHEMA_VERSION
public static final int SCHEMA_VERSIONCurrently supported version of segment schema format. The schema cache can contain schemas for only this version.- See Also:
-
-
Constructor Details
-
CentralizedDatasourceSchemaConfig
-
-
Method Details
-
isEnabled
public boolean isEnabled() -
isBackFillEnabled
public boolean isBackFillEnabled() -
getBackFillPeriodInMillis
public long getBackFillPeriodInMillis()Period in milliseconds dictating the frequency of the schema backfill job. -
isTaskSchemaPublishDisabled
public boolean isTaskSchemaPublishDisabled()Config used to disable publishing of schema when a task commits segments. This config is used only in integration tests to verify that schema is populated correctly even when tasks fail to publish the schema. -
create
- Returns:
- Default config with schema management and caching disabled.
-
enabled
-