@EnumDescription(value="Partition filter mode used in the creation of clustering plan.") public enum ClusteringPlanPartitionFilterMode extends Enum<ClusteringPlanPartitionFilterMode>
| Enum Constant and Description |
|---|
DAY_ROLLING |
NONE |
RECENT_DAYS |
SELECTED_PARTITIONS |
| Modifier and Type | Method and Description |
|---|---|
static ClusteringPlanPartitionFilterMode |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static ClusteringPlanPartitionFilterMode[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
@EnumFieldDescription(value="Do not filter partitions. The clustering plan will include all partitions that have clustering candidates.") public static final ClusteringPlanPartitionFilterMode NONE
@EnumFieldDescription(value="This filter assumes that your data is partitioned by date. The clustering plan will only include partitions from K days ago to N days ago, where K >= N. K is determined by `hoodie.clustering.plan.strategy.daybased.lookback.partitions` and N is determined by `hoodie.clustering.plan.strategy.daybased.skipfromlatest.partitions`.") public static final ClusteringPlanPartitionFilterMode RECENT_DAYS
@EnumFieldDescription(value="The clustering plan will include only partition paths with names that sort within the inclusive range [`hoodie.clustering.plan.strategy.cluster.begin.partition`, `hoodie.clustering.plan.strategy.cluster.end.partition`].") public static final ClusteringPlanPartitionFilterMode SELECTED_PARTITIONS
@EnumFieldDescription(value="To determine the partitions in the clustering plan, the eligible partitions will be sorted in ascending order. Each partition will have an index i in that list. The clustering plan will only contain partitions such that i mod 24 = H, where H is the current hour of the day (from 0 to 23).") public static final ClusteringPlanPartitionFilterMode DAY_ROLLING
public static ClusteringPlanPartitionFilterMode[] values()
for (ClusteringPlanPartitionFilterMode c : ClusteringPlanPartitionFilterMode.values()) System.out.println(c);
public static ClusteringPlanPartitionFilterMode 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.