@@ -106,10 +106,10 @@ public class HoodieCompactionConfig extends HoodieConfig {
106106 .withDocumentation ("Only if the log file size is greater than the threshold in bytes,"
107107 + " the file group will be compacted." );
108108
109- public static final ConfigProperty <Long > COMPACTION_LOG_FILE_LENGTH_THRESHOLD = ConfigProperty
110- .key ("hoodie.compaction.logfile.length .threshold" )
109+ public static final ConfigProperty <Long > COMPACTION_LOG_FILE_NUM_THRESHOLD = ConfigProperty
110+ .key ("hoodie.compaction.logfile.num .threshold" )
111111 .defaultValue (0L )
112- .withDocumentation ("Only if the log file length is greater than the threshold,"
112+ .withDocumentation ("Only if the log file num is greater than the threshold,"
113113 + " the file group will be compacted." );
114114
115115 public static final ConfigProperty <String > COMPACTION_STRATEGY = ConfigProperty
@@ -170,24 +170,16 @@ public class HoodieCompactionConfig extends HoodieConfig {
170170 + " This is critical in computing the insert parallelism and bin-packing inserts into small files." );
171171
172172
173- /**
174- * @deprecated Use {@link #INLINE_COMPACT} and its methods instead
175- */
173+ /** @deprecated Use {@link #INLINE_COMPACT} and its methods instead */
176174 @ Deprecated
177175 public static final String INLINE_COMPACT_PROP = INLINE_COMPACT .key ();
178- /**
179- * @deprecated Use {@link #INLINE_COMPACT_NUM_DELTA_COMMITS} and its methods instead
180- */
176+ /** @deprecated Use {@link #INLINE_COMPACT_NUM_DELTA_COMMITS} and its methods instead */
181177 @ Deprecated
182178 public static final String INLINE_COMPACT_NUM_DELTA_COMMITS_PROP = INLINE_COMPACT_NUM_DELTA_COMMITS .key ();
183- /**
184- * @deprecated Use {@link #INLINE_COMPACT_TIME_DELTA_SECONDS} and its methods instead
185- */
179+ /** @deprecated Use {@link #INLINE_COMPACT_TIME_DELTA_SECONDS} and its methods instead */
186180 @ Deprecated
187181 public static final String INLINE_COMPACT_TIME_DELTA_SECONDS_PROP = INLINE_COMPACT_TIME_DELTA_SECONDS .key ();
188- /**
189- * @deprecated Use {@link #INLINE_COMPACT_TRIGGER_STRATEGY} and its methods instead
190- */
182+ /** @deprecated Use {@link #INLINE_COMPACT_TRIGGER_STRATEGY} and its methods instead */
191183 @ Deprecated
192184 public static final String INLINE_COMPACT_TRIGGER_STRATEGY_PROP = INLINE_COMPACT_TRIGGER_STRATEGY .key ();
193185 /**
@@ -255,61 +247,41 @@ public class HoodieCompactionConfig extends HoodieConfig {
255247 */
256248 @ Deprecated
257249 public static final String COMPACTION_STRATEGY_PROP = COMPACTION_STRATEGY .key ();
258- /**
259- * @deprecated Use {@link #COMPACTION_STRATEGY} and its methods instead
260- */
250+ /** @deprecated Use {@link #COMPACTION_STRATEGY} and its methods instead */
261251 @ Deprecated
262252 public static final String DEFAULT_COMPACTION_STRATEGY = COMPACTION_STRATEGY .defaultValue ();
263- /**
264- * @deprecated Use {@link #COMPACTION_LAZY_BLOCK_READ_ENABLE} and its methods instead
265- */
253+ /** @deprecated Use {@link #COMPACTION_LAZY_BLOCK_READ_ENABLE} and its methods instead */
266254 @ Deprecated
267255 public static final String COMPACTION_LAZY_BLOCK_READ_ENABLED_PROP = COMPACTION_LAZY_BLOCK_READ_ENABLE .key ();
268- /**
269- * @deprecated Use {@link #COMPACTION_LAZY_BLOCK_READ_ENABLE} and its methods instead
270- */
256+ /** @deprecated Use {@link #COMPACTION_LAZY_BLOCK_READ_ENABLE} and its methods instead */
271257 @ Deprecated
272258 public static final String DEFAULT_COMPACTION_LAZY_BLOCK_READ_ENABLED = COMPACTION_REVERSE_LOG_READ_ENABLE .defaultValue ();
273- /**
274- * @deprecated Use {@link #COMPACTION_REVERSE_LOG_READ_ENABLE} and its methods instead
275- */
259+ /** @deprecated Use {@link #COMPACTION_REVERSE_LOG_READ_ENABLE} and its methods instead */
276260 @ Deprecated
277261 public static final String COMPACTION_REVERSE_LOG_READ_ENABLED_PROP = COMPACTION_REVERSE_LOG_READ_ENABLE .key ();
278- /**
279- * @deprecated Use {@link #COMPACTION_REVERSE_LOG_READ_ENABLE} and its methods instead
280- */
262+ /** @deprecated Use {@link #COMPACTION_REVERSE_LOG_READ_ENABLE} and its methods instead */
281263 @ Deprecated
282264 public static final String DEFAULT_COMPACTION_REVERSE_LOG_READ_ENABLED = COMPACTION_REVERSE_LOG_READ_ENABLE .defaultValue ();
283- /**
284- * @deprecated Use {@link #TARGET_PARTITIONS_PER_DAYBASED_COMPACTION} and its methods instead
285- */
286- @ Deprecated
287- public static final String TARGET_PARTITIONS_PER_DAYBASED_COMPACTION_PROP = TARGET_PARTITIONS_PER_DAYBASED_COMPACTION .key ();
288- /**
289- * @deprecated Use {@link #TARGET_PARTITIONS_PER_DAYBASED_COMPACTION} and its methods instead
290- */
291- @ Deprecated
292- public static final String DEFAULT_TARGET_PARTITIONS_PER_DAYBASED_COMPACTION = TARGET_PARTITIONS_PER_DAYBASED_COMPACTION .defaultValue ();
293265 /**
294266 * @deprecated Use {@link #INLINE_COMPACT} and its methods instead
295267 */
296268 @ Deprecated
297269 private static final String DEFAULT_INLINE_COMPACT = INLINE_COMPACT .defaultValue ();
298- /**
299- * @deprecated Use {@link #INLINE_COMPACT_NUM_DELTA_COMMITS} and its methods instead
300- */
270+ /** @deprecated Use {@link #INLINE_COMPACT_NUM_DELTA_COMMITS} and its methods instead */
301271 @ Deprecated
302272 private static final String DEFAULT_INLINE_COMPACT_NUM_DELTA_COMMITS = INLINE_COMPACT_NUM_DELTA_COMMITS .defaultValue ();
303- /**
304- * @deprecated Use {@link #INLINE_COMPACT_TIME_DELTA_SECONDS} and its methods instead
305- */
273+ /** @deprecated Use {@link #INLINE_COMPACT_TIME_DELTA_SECONDS} and its methods instead */
306274 @ Deprecated
307275 private static final String DEFAULT_INLINE_COMPACT_TIME_DELTA_SECONDS = INLINE_COMPACT_TIME_DELTA_SECONDS .defaultValue ();
308- /**
309- * @deprecated Use {@link #INLINE_COMPACT_TRIGGER_STRATEGY} and its methods instead
310- */
276+ /** @deprecated Use {@link #INLINE_COMPACT_TRIGGER_STRATEGY} and its methods instead */
311277 @ Deprecated
312278 private static final String DEFAULT_INLINE_COMPACT_TRIGGER_STRATEGY = INLINE_COMPACT_TRIGGER_STRATEGY .defaultValue ();
279+ /** @deprecated Use {@link #TARGET_PARTITIONS_PER_DAYBASED_COMPACTION} and its methods instead */
280+ @ Deprecated
281+ public static final String TARGET_PARTITIONS_PER_DAYBASED_COMPACTION_PROP = TARGET_PARTITIONS_PER_DAYBASED_COMPACTION .key ();
282+ /** @deprecated Use {@link #TARGET_PARTITIONS_PER_DAYBASED_COMPACTION} and its methods instead */
283+ @ Deprecated
284+ public static final String DEFAULT_TARGET_PARTITIONS_PER_DAYBASED_COMPACTION = TARGET_PARTITIONS_PER_DAYBASED_COMPACTION .defaultValue ();
313285
314286 private HoodieCompactionConfig () {
315287 super ();
@@ -415,8 +387,8 @@ public Builder withLogFileSizeThresholdBasedCompaction(long logFileSizeThreshold
415387 return this ;
416388 }
417389
418- public Builder withLogFileLengthThresholdBasedCompaction (int logFileLengthThreshold ) {
419- compactionConfig .setValue (COMPACTION_LOG_FILE_LENGTH_THRESHOLD , String .valueOf (logFileLengthThreshold ));
390+ public Builder withLogFileNumThresholdBasedCompaction (int logFileNumThreshold ) {
391+ compactionConfig .setValue (COMPACTION_LOG_FILE_NUM_THRESHOLD , String .valueOf (logFileNumThreshold ));
420392 return this ;
421393 }
422394
0 commit comments