Class ReindexingIndexSpecRule
java.lang.Object
org.apache.druid.server.compaction.AbstractReindexingRule
org.apache.druid.server.compaction.ReindexingIndexSpecRule
- All Implemented Interfaces:
ReindexingRule
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"
}
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.apache.druid.server.compaction.ReindexingRule
ReindexingRule.AppliesToMode -
Constructor Summary
ConstructorsConstructorDescriptionReindexingIndexSpecRule(String id, String description, org.joda.time.Period olderThan, IndexSpec indexSpec) -
Method Summary
Methods inherited from class org.apache.druid.server.compaction.AbstractReindexingRule
appliesTo, getDescription, getId, getOlderThan