@EnumDescription(value="Determines the type of bucketing or hashing to use when `hoodie.index.type` is set to `BUCKET`.") public static enum HoodieIndex.BucketIndexEngineType extends Enum<HoodieIndex.BucketIndexEngineType>
| Enum Constant and Description |
|---|
CONSISTENT_HASHING |
SIMPLE |
| Modifier and Type | Method and Description |
|---|---|
static HoodieIndex.BucketIndexEngineType |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static HoodieIndex.BucketIndexEngineType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
@EnumFieldDescription(value="Uses a fixed number of buckets for file groups which cannot shrink or expand. This works for both COW and MOR tables.") public static final HoodieIndex.BucketIndexEngineType SIMPLE
@EnumFieldDescription(value="Supports dynamic number of buckets with bucket resizing to properly size each bucket. This solves potential data skew problem where one bucket can be significantly larger than others in SIMPLE engine type. This only works with MOR tables.") public static final HoodieIndex.BucketIndexEngineType CONSISTENT_HASHING
public static HoodieIndex.BucketIndexEngineType[] values()
for (HoodieIndex.BucketIndexEngineType c : HoodieIndex.BucketIndexEngineType.values()) System.out.println(c);
public static HoodieIndex.BucketIndexEngineType 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 © 2023 The Apache Software Foundation. All rights reserved.