public static class HoodieCompactionConfig.Builder extends Object
| Constructor and Description |
|---|
Builder() |
public HoodieCompactionConfig.Builder fromFile(File propertiesFile) throws IOException
IOExceptionpublic HoodieCompactionConfig.Builder fromProperties(Properties props)
public HoodieCompactionConfig.Builder withInlineCompaction(Boolean inlineCompaction)
public HoodieCompactionConfig.Builder withScheduleInlineCompaction(Boolean scheduleAsyncCompaction)
public HoodieCompactionConfig.Builder withInlineLogCompaction(Boolean inlineLogCompaction)
public HoodieCompactionConfig.Builder withInlineCompactionTriggerStrategy(CompactionTriggerStrategy compactionTriggerStrategy)
public HoodieCompactionConfig.Builder compactionSmallFileSize(long smallFileLimitBytes)
public HoodieCompactionConfig.Builder compactionRecordSizeEstimateThreshold(double threshold)
public HoodieCompactionConfig.Builder insertSplitSize(int insertSplitSize)
public HoodieCompactionConfig.Builder autoTuneInsertSplits(boolean autoTuneInsertSplits)
public HoodieCompactionConfig.Builder approxRecordSize(int recordSizeEstimate)
public HoodieCompactionConfig.Builder withCompactionStrategy(CompactionStrategy... compactionStrategies)
public HoodieCompactionConfig.Builder withTargetIOPerCompactionInMB(long targetIOPerCompactionInMB)
public HoodieCompactionConfig.Builder withMaxNumDeltaCommitsBeforeCompaction(int maxNumDeltaCommitsBeforeCompaction)
public HoodieCompactionConfig.Builder withMaxDeltaSecondsBeforeCompaction(int maxDeltaSecondsBeforeCompaction)
public HoodieCompactionConfig.Builder withCompactionLazyBlockReadEnabled(Boolean compactionLazyBlockReadEnabled)
public HoodieCompactionConfig.Builder withCompactionReverseLogReadEnabled(Boolean compactionReverseLogReadEnabled)
public HoodieCompactionConfig.Builder withTargetPartitionsPerDayBasedCompaction(int targetPartitionsPerCompaction)
public HoodieCompactionConfig.Builder withLogFileSizeThresholdBasedCompaction(long logFileSizeThreshold)
public HoodieCompactionConfig.Builder withCompactionLogFileNumThreshold(int logFileNumThreshold)
public HoodieCompactionConfig.Builder withLogCompactionEnabled(boolean enableLogCompaction)
public HoodieCompactionConfig.Builder withLogCompactionBlocksThreshold(int logCompactionBlocksThreshold)
public HoodieCompactionConfig.Builder withEnableOptimizedLogBlocksScan(String enableOptimizedLogBlocksScan)
public HoodieCompactionConfig.Builder withCompactionSpecifyPartitionPathRegex(String partitionPathRegex)
public HoodieCompactionConfig build()
Copyright © 2024 The Apache Software Foundation. All rights reserved.