@EnumDescription(value="Bootstrap mode for importing an existing table into Hudi") public enum BootstrapMode extends Enum<BootstrapMode>
| Enum Constant and Description |
|---|
FULL_RECORD
In this mode, record level metadata is generated for each source record and both original record and metadata
for each record copied.
|
METADATA_ONLY
In this mode, record level metadata alone is generated for each source record and stored in new bootstrap location.
|
| Modifier and Type | Method and Description |
|---|---|
static BootstrapMode |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static BootstrapMode[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
@EnumFieldDescription(value="In this mode, the full record data is copied into hudi and metadata columns are added. A full record bootstrap is functionally equivalent to a bulk-insert. After a full record bootstrap, Hudi will function properly even if the original table is modified or deleted.") public static final BootstrapMode FULL_RECORD
@EnumFieldDescription(value="In this mode, the full record data is not copied into Hudi therefore it avoids full cost of rewriting the dataset. Instead, \'skeleton\' files containing just the corresponding metadata columns are added to the Hudi table. Hudi relies on the data in the original table and will face data-loss or corruption if files in the original table location are deleted or modified.") public static final BootstrapMode METADATA_ONLY
public static BootstrapMode[] values()
for (BootstrapMode c : BootstrapMode.values()) System.out.println(c);
public static BootstrapMode 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.