Package org.apache.druid.client.indexing
Class ClientCompactionTaskGranularitySpec
- java.lang.Object
-
- org.apache.druid.client.indexing.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 inGranularitySpec. 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 asGranularitySpec. 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
Constructors Constructor Description ClientCompactionTaskGranularitySpec(org.apache.druid.java.util.common.granularity.Granularity segmentGranularity, org.apache.druid.java.util.common.granularity.Granularity queryGranularity, Boolean rollup)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object o)org.apache.druid.java.util.common.granularity.GranularitygetQueryGranularity()org.apache.druid.java.util.common.granularity.GranularitygetSegmentGranularity()inthashCode()BooleanisRollup()StringtoString()ClientCompactionTaskGranularitySpecwithSegmentGranularity(org.apache.druid.java.util.common.granularity.Granularity segmentGranularity)
-
-
-
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()
-
withSegmentGranularity
public ClientCompactionTaskGranularitySpec withSegmentGranularity(org.apache.druid.java.util.common.granularity.Granularity segmentGranularity)
-
-