public class ClientCompactionTaskGranularitySpec extends Object
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 and Description |
|---|
ClientCompactionTaskGranularitySpec(Granularity segmentGranularity,
Granularity queryGranularity) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object o) |
Granularity |
getQueryGranularity() |
Granularity |
getSegmentGranularity() |
int |
hashCode() |
String |
toString() |
ClientCompactionTaskGranularitySpec |
withSegmentGranularity(Granularity segmentGranularity) |
public ClientCompactionTaskGranularitySpec(Granularity segmentGranularity, Granularity queryGranularity)
public Granularity getSegmentGranularity()
public Granularity getQueryGranularity()
public ClientCompactionTaskGranularitySpec withSegmentGranularity(Granularity segmentGranularity)
Copyright © 2011–2021 The Apache Software Foundation. All rights reserved.