Interface DataSourceCompactionConfig
- All Known Implementing Classes:
CatalogDataSourceCompactionConfig,InlineSchemaDataSourceCompactionConfig
public interface DataSourceCompactionConfig
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intMust be synced with Tasks.DEFAULT_MERGE_TASK_PRIORITYstatic final longstatic final org.joda.time.Period -
Method Summary
Modifier and TypeMethodDescriptionlongDeprecated.org.joda.time.Periodintdefault CompactionStateConverts this compaction config to aCompactionState.validate(ClusterCompactionConfig clusterCompactionConfig) Validates that the compaction config is well-formed and can be executed.
-
Field Details
-
DEFAULT_COMPACTION_TASK_PRIORITY
static final int DEFAULT_COMPACTION_TASK_PRIORITYMust be synced with Tasks.DEFAULT_MERGE_TASK_PRIORITY- See Also:
-
DEFAULT_INPUT_SEGMENT_SIZE_BYTES
static final long DEFAULT_INPUT_SEGMENT_SIZE_BYTES- See Also:
-
DEFAULT_SKIP_OFFSET_FROM_LATEST
static final org.joda.time.Period DEFAULT_SKIP_OFFSET_FROM_LATEST
-
-
Method Details
-
getDataSource
String getDataSource() -
validate
Validates that the compaction config is well-formed and can be executed. -
getEngine
-
getTaskPriority
int getTaskPriority() -
getInputSegmentSizeBytes
long getInputSegmentSizeBytes() -
getMaxRowsPerSegment
Deprecated. -
getSkipOffsetFromLatest
org.joda.time.Period getSkipOffsetFromLatest() -
getTuningConfig
-
getIoConfig
-
getTaskContext
-
getSegmentGranularity
-
getGranularitySpec
-
getProjections
-
getTransformSpec
-
getDimensionsSpec
-
getMetricsSpec
-
toCompactionState
Converts this compaction config to aCompactionState.For IndexSpec and DimensionsSpec, we convert to their effective specs so that the fingerprint and associated state reflect the actual layout of the segments after compaction (with all missing defaults not included in the compaction config filled in). This is consistent with how
DataSegment.lastCompactionStatehas been computed historically.
-