Package org.apache.druid.client.indexing
Class ClientCompactionTaskGranularitySpec
java.lang.Object
org.apache.druid.client.indexing.ClientCompactionTaskGranularitySpec
Spec containing Granularity configs for Compaction Task.
This class mimics JSON field names for fields supported in compaction task with
the corresponding fields in
GranularitySpec.
This is done for end-user ease of use. Basically, end-user will use the same syntax / JSON structure to set
Granularity configs for Compaction task as they would for any other ingestion task.
Note that this class is not the same as GranularitySpec. This class simply holds Granularity configs
and use it to generate index task specs (Compaction task internally creates index task).
This class does not do bucketing, group events or knows how to partition data.-
Constructor Summary
ConstructorsConstructorDescriptionClientCompactionTaskGranularitySpec(Granularity segmentGranularity, Granularity queryGranularity, Boolean rollup) -
Method Summary
Modifier and TypeMethodDescriptionbooleaninthashCode()isRollup()toString()withSegmentGranularity(Granularity segmentGranularity)
-
Constructor Details
-
ClientCompactionTaskGranularitySpec
public ClientCompactionTaskGranularitySpec(@Nullable Granularity segmentGranularity, @Nullable Granularity queryGranularity, @Nullable Boolean rollup)
-
-
Method Details