Package org.apache.druid.timeline
Class CompactionState
- java.lang.Object
-
- org.apache.druid.timeline.CompactionState
-
public class CompactionState extends Object
This class describes what compaction task spec was used to create a given segment. The compaction task is a task that reads Druid segments and overwrites them with new ones. Since this task always reads segments in the same order, the same task spec will always create the same set of segments (not same segment ID, but same content). Note that this class doesn't include all fields in the compaction task spec. Only the configurations that can affect the content of segment should be included.- See Also:
DataSegment.lastCompactionState
-
-
Constructor Summary
Constructors Constructor Description CompactionState(PartitionsSpec partitionsSpec, DimensionsSpec dimensionsSpec, List<Object> metricsSpec, Map<String,Object> transformSpec, Map<String,Object> indexSpec, Map<String,Object> granularitySpec)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(Object o)
DimensionsSpec
getDimensionsSpec()
Map<String,Object>
getGranularitySpec()
Map<String,Object>
getIndexSpec()
List<Object>
getMetricsSpec()
PartitionsSpec
getPartitionsSpec()
Map<String,Object>
getTransformSpec()
int
hashCode()
String
toString()
-
-
-
Method Detail
-
getPartitionsSpec
public PartitionsSpec getPartitionsSpec()
-
getDimensionsSpec
public DimensionsSpec getDimensionsSpec()
-
-