@EnumDescription(value="Cleaning policy to be used. The cleaner service deletes older file slices files to re-claim space. Long running query plans may often refer to older file slices and will break if those are cleaned, before the query has had a chance to run. So, it is good to make sure that the data is retained for more than the maximum query execution time. By default, the cleaning policy is determined based on one of the following configs explicitly set by the user (at most one of them can be set; otherwise, KEEP_LATEST_COMMITS cleaning policy is used).") public enum HoodieCleaningPolicy extends Enum<HoodieCleaningPolicy>
| Enum Constant and Description |
|---|
KEEP_LATEST_BY_HOURS |
KEEP_LATEST_COMMITS |
KEEP_LATEST_FILE_VERSIONS |
| Modifier and Type | Method and Description |
|---|---|
static HoodieCleaningPolicy |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static HoodieCleaningPolicy[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
@EnumFieldDescription(value="keeps the last N versions of the file slices written; used when \"hoodie.clean.fileversions.retained\" is explicitly set only.") public static final HoodieCleaningPolicy KEEP_LATEST_FILE_VERSIONS
@EnumFieldDescription(value="keeps the file slices written by the last N commits; used when \"hoodie.clean.commits.retained\" is explicitly set only.") public static final HoodieCleaningPolicy KEEP_LATEST_COMMITS
@EnumFieldDescription(value="keeps the file slices written in the last N hours based on the commit time; used when \"hoodie.clean.hours.retained\" is explicitly set only.") public static final HoodieCleaningPolicy KEEP_LATEST_BY_HOURS
public static HoodieCleaningPolicy[] values()
for (HoodieCleaningPolicy c : HoodieCleaningPolicy.values()) System.out.println(c);
public static HoodieCleaningPolicy valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is nullCopyright © 2024 The Apache Software Foundation. All rights reserved.