Class ClientCompactionTaskGranularitySpec


  • public class ClientCompactionTaskGranularitySpec
    extends Object
    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 Detail

      • ClientCompactionTaskGranularitySpec

        public ClientCompactionTaskGranularitySpec​(org.apache.druid.java.util.common.granularity.Granularity segmentGranularity,
                                                   org.apache.druid.java.util.common.granularity.Granularity queryGranularity,
                                                   Boolean rollup)
    • Method Detail

      • getSegmentGranularity

        public org.apache.druid.java.util.common.granularity.Granularity getSegmentGranularity()
      • getQueryGranularity

        public org.apache.druid.java.util.common.granularity.Granularity getQueryGranularity()
      • isRollup

        public Boolean isRollup()
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object