Class ReindexingIndexSpecRule

java.lang.Object
org.apache.druid.server.compaction.AbstractReindexingRule
org.apache.druid.server.compaction.ReindexingIndexSpecRule
All Implemented Interfaces:
ReindexingRule

public class ReindexingIndexSpecRule extends AbstractReindexingRule
A ReindexingRule that specifies an IndexSpec for reindexing tasks to configure.

This rule controls compression and encoding settings independently from partitioning. For example, applying different bitmap or metric compression to older data.

This is a non-additive rule. Multiple index spec rules cannot be applied to the same interval.

Example inline usage:


 {
   "id": "compressed-90d",
   "olderThan": "P90D",
   "indexSpec": {
     "bitmap": { "type": "roaring" },
     "metricCompression": "lz4"
   },
   "description": "Use roaring bitmaps and lz4 for data older than 90 days"
 }
 
  • Constructor Details

    • ReindexingIndexSpecRule

      public ReindexingIndexSpecRule(@Nonnull String id, @Nullable String description, @Nonnull org.joda.time.Period olderThan, @Nonnull IndexSpec indexSpec)
  • Method Details