public enum MetadataPartitionType extends Enum<MetadataPartitionType>
| Enum Constant and Description |
|---|
BLOOM_FILTERS |
COLUMN_STATS |
FILES |
FUNCTIONAL_INDEX |
PARTITION_STATS |
RECORD_INDEX |
SECONDARY_INDEX |
| Modifier and Type | Method and Description |
|---|---|
static MetadataPartitionType |
fromPartitionPath(String partitionPath) |
static Set<String> |
getAllPartitionPaths()
Returns the set of all metadata partition names.
|
static List<MetadataPartitionType> |
getEnabledPartitions(TypedProperties writeConfig,
HoodieTableMetaClient metaClient)
Returns the list of metadata partition types enabled based on the metadata config and table config.
|
String |
getFileIdPrefix() |
static List<MetadataPartitionType> |
getMetadataPartitionsNeedingWriteStatusTracking()
Returns the list of metadata table partitions which require WriteStatus to track written records.
|
String |
getPartitionPath() |
boolean |
isMetadataPartitionAvailable(HoodieTableMetaClient metaClient)
Check if the metadata partition is available based on the table config.
|
abstract boolean |
isMetadataPartitionEnabled(TypedProperties writeConfig)
Check if the metadata partition is enabled based on the metadata config.
|
String |
toString() |
static MetadataPartitionType |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static MetadataPartitionType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final MetadataPartitionType FILES
public static final MetadataPartitionType COLUMN_STATS
public static final MetadataPartitionType BLOOM_FILTERS
public static final MetadataPartitionType RECORD_INDEX
public static final MetadataPartitionType FUNCTIONAL_INDEX
public static final MetadataPartitionType SECONDARY_INDEX
public static final MetadataPartitionType PARTITION_STATS
public static MetadataPartitionType[] values()
for (MetadataPartitionType c : MetadataPartitionType.values()) System.out.println(c);
public static MetadataPartitionType 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 nullpublic abstract boolean isMetadataPartitionEnabled(TypedProperties writeConfig)
public boolean isMetadataPartitionAvailable(HoodieTableMetaClient metaClient)
public String getPartitionPath()
public String getFileIdPrefix()
public static List<MetadataPartitionType> getMetadataPartitionsNeedingWriteStatusTracking()
These partitions need the list of written records so that they can update their metadata.
public static Set<String> getAllPartitionPaths()
public static List<MetadataPartitionType> getEnabledPartitions(TypedProperties writeConfig, HoodieTableMetaClient metaClient)
public static MetadataPartitionType fromPartitionPath(String partitionPath)
public String toString()
toString in class Enum<MetadataPartitionType>Copyright © 2024 The Apache Software Foundation. All rights reserved.