Class ReindexingDataSchemaRule
java.lang.Object
org.apache.druid.server.compaction.AbstractReindexingRule
org.apache.druid.server.compaction.ReindexingDataSchemaRule
- All Implemented Interfaces:
ReindexingRule
A
ReindexingRule that specifies a data schema for reindexing tasks to configure.
This rule allows users to specify dimensionsspec metricsspec, query granularity, rollup, and projections for reindexing tasks to apply
This is a non-additive rule. Multiple data schema rules cannot be applied to the same interval being reindexed.
Example inline usage:
{@code
{
"id": "change-query-granularity-30d",
"olderThan": "P30D",
"queryGranularity": "HOUR",
"rollup": true
}</pre>-
Nested Class Summary
Nested classes/interfaces inherited from interface org.apache.druid.server.compaction.ReindexingRule
ReindexingRule.AppliesToMode -
Constructor Summary
ConstructorsConstructorDescriptionReindexingDataSchemaRule(String id, String description, org.joda.time.Period olderThan, UserCompactionTaskDimensionsConfig dimensionsSpec, AggregatorFactory[] metricsSpec, Granularity queryGranularity, Boolean rollup, List<AggregateProjectionSpec> projections) -
Method Summary
Methods inherited from class org.apache.druid.server.compaction.AbstractReindexingRule
appliesTo, getDescription, getId, getOlderThan
-
Constructor Details
-
ReindexingDataSchemaRule
public ReindexingDataSchemaRule(@Nonnull String id, @Nullable String description, @Nonnull org.joda.time.Period olderThan, @Nullable UserCompactionTaskDimensionsConfig dimensionsSpec, @Nullable AggregatorFactory[] metricsSpec, @Nullable Granularity queryGranularity, @Nullable Boolean rollup, @Nullable List<AggregateProjectionSpec> projections)
-
-
Method Details