public class HoodieTableConfig extends HoodieConfig
HoodieTableMetaClient,
Serialized FormCONFIG_VALUES_DELIMITER, props| Constructor and Description |
|---|
HoodieTableConfig()
For serializing and de-serializing.
|
HoodieTableConfig(org.apache.hadoop.fs.FileSystem fs,
String metaPath,
String payloadClassName) |
| Modifier and Type | Method and Description |
|---|---|
static void |
create(org.apache.hadoop.fs.FileSystem fs,
org.apache.hadoop.fs.Path metadataFolder,
Properties properties)
Initialize the hoodie meta directory and any necessary files inside the meta (including the hoodie.properties).
|
static void |
delete(org.apache.hadoop.fs.FileSystem fs,
org.apache.hadoop.fs.Path metadataFolder,
Set<String> deletedProps) |
static long |
generateChecksum(Properties props) |
String |
getArchivelogFolder()
Get the relative path of archive log folder under metafolder, for this table.
|
HoodieFileFormat |
getBaseFileFormat()
Get the base file storage format.
|
Option<String> |
getBootstrapBasePath() |
String |
getBootstrapIndexClass()
Read the payload class for HoodieRecords from the table properties.
|
String |
getDatabaseName()
Read the database name.
|
static String |
getDefaultBootstrapIndexClass(Properties props) |
String |
getHiveStylePartitioningEnable() |
String |
getKeyGeneratorClassName() |
HoodieFileFormat |
getLogFileFormat()
Get the log Storage Format.
|
Set<String> |
getMetadataPartitions() |
List<String> |
getMetadataPartitionsInflight() |
String |
getPartitionFieldProp()
Deprecated.
please use
getPartitionFields() instead |
Option<String[]> |
getPartitionFields() |
Option<HoodieFileFormat> |
getPartitionMetafileFormat()
Returns the format to use for partition meta files.
|
String |
getPayloadClass()
Read the payload class for HoodieRecords from the table properties.
|
String |
getPreCombineField() |
String |
getRecordKeyFieldProp() |
Option<String[]> |
getRecordKeyFields() |
Option<org.apache.avro.Schema> |
getTableCreateSchema() |
String |
getTableName()
Read the table name.
|
HoodieTableType |
getTableType()
Read the table type from the table properties and if not found, return the default.
|
HoodieTableVersion |
getTableVersion() |
Option<TimelineLayoutVersion> |
getTimelineLayoutVersion() |
String |
getUrlEncodePartitioning() |
boolean |
isTablePartitioned() |
boolean |
populateMetaFields() |
Map<String,String> |
propsMap() |
static void |
recover(org.apache.hadoop.fs.FileSystem fs,
org.apache.hadoop.fs.Path metadataFolder) |
void |
setTableVersion(HoodieTableVersion tableVersion) |
Boolean |
shouldDropPartitionColumns() |
static void |
update(org.apache.hadoop.fs.FileSystem fs,
org.apache.hadoop.fs.Path metadataFolder,
Properties updatedProps)
Upserts the table config with the set of properties passed in.
|
static boolean |
validateChecksum(Properties props) |
contains, contains, create, getBoolean, getBooleanOrDefault, getBooleanOrDefault, getBooleanOrDefault, getDouble, getFloat, getInt, getIntOrDefault, getLong, getProps, getProps, getSplitStrings, getSplitStrings, getString, getString, getStringOrDefault, getStringOrDefault, getStringOrThrow, setAll, setDefault, setDefaultOnCondition, setDefaults, setDefaultValue, setDefaultValue, setValue, setValuepublic static final String HOODIE_PROPERTIES_FILE
public static final String HOODIE_PROPERTIES_FILE_BACKUP
public static final String HOODIE_WRITE_TABLE_NAME_KEY
public static final String HOODIE_TABLE_NAME_KEY
public static final ConfigProperty<String> DATABASE_NAME
public static final ConfigProperty<String> NAME
public static final ConfigProperty<HoodieTableType> TYPE
public static final ConfigProperty<HoodieTableVersion> VERSION
public static final ConfigProperty<String> PRECOMBINE_FIELD
public static final ConfigProperty<String> PARTITION_FIELDS
public static final ConfigProperty<String> RECORDKEY_FIELDS
public static final ConfigProperty<String> CREATE_SCHEMA
public static final ConfigProperty<HoodieFileFormat> BASE_FILE_FORMAT
public static final ConfigProperty<HoodieFileFormat> LOG_FILE_FORMAT
public static final ConfigProperty<String> TIMELINE_LAYOUT_VERSION
public static final ConfigProperty<String> PAYLOAD_CLASS_NAME
public static final ConfigProperty<String> ARCHIVELOG_FOLDER
public static final ConfigProperty<Boolean> BOOTSTRAP_INDEX_ENABLE
public static final ConfigProperty<String> BOOTSTRAP_INDEX_CLASS_NAME
public static final ConfigProperty<String> BOOTSTRAP_BASE_PATH
public static final ConfigProperty<Boolean> POPULATE_META_FIELDS
public static final ConfigProperty<String> KEY_GENERATOR_CLASS_NAME
public static final ConfigProperty<HoodieTimelineTimeZone> TIMELINE_TIMEZONE
public static final ConfigProperty<Boolean> PARTITION_METAFILE_USE_BASE_FORMAT
public static final ConfigProperty<Boolean> DROP_PARTITION_COLUMNS
public static final ConfigProperty<String> URL_ENCODE_PARTITIONING
public static final ConfigProperty<String> HIVE_STYLE_PARTITIONING_ENABLE
public static final String NO_OP_BOOTSTRAP_INDEX_CLASS
public static final ConfigProperty<String> TABLE_CHECKSUM
public static final ConfigProperty<String> TABLE_METADATA_PARTITIONS_INFLIGHT
public static final ConfigProperty<String> TABLE_METADATA_PARTITIONS
@Deprecated public static final String HOODIE_RO_FILE_FORMAT_PROP_NAME
BASE_FILE_FORMAT and its methods.@Deprecated public static final String HOODIE_RT_FILE_FORMAT_PROP_NAME
LOG_FILE_FORMAT and its methods.@Deprecated public static final String HOODIE_TABLE_NAME_PROP_NAME
NAME and its methods.@Deprecated public static final String HOODIE_TABLE_TYPE_PROP_NAME
TYPE and its methods.@Deprecated public static final String HOODIE_TABLE_VERSION_PROP_NAME
VERSION and its methods.@Deprecated public static final String HOODIE_TABLE_PRECOMBINE_FIELD
PRECOMBINE_FIELD and its methods.@Deprecated public static final String HOODIE_BASE_FILE_FORMAT_PROP_NAME
BASE_FILE_FORMAT and its methods.@Deprecated public static final String HOODIE_LOG_FILE_FORMAT_PROP_NAME
LOG_FILE_FORMAT and its methods.@Deprecated public static final String HOODIE_TIMELINE_LAYOUT_VERSION
TIMELINE_LAYOUT_VERSION and its methods.@Deprecated public static final String HOODIE_PAYLOAD_CLASS_PROP_NAME
PAYLOAD_CLASS_NAME and its methods.@Deprecated public static final String HOODIE_ARCHIVELOG_FOLDER_PROP_NAME
ARCHIVELOG_FOLDER and its methods.@Deprecated public static final String HOODIE_BOOTSTRAP_INDEX_CLASS_PROP_NAME
BOOTSTRAP_INDEX_CLASS_NAME and its methods.@Deprecated public static final String HOODIE_BOOTSTRAP_BASE_PATH
BOOTSTRAP_BASE_PATH and its methods.@Deprecated public static final HoodieTableType DEFAULT_TABLE_TYPE
TYPE and its methods.@Deprecated public static final HoodieTableVersion DEFAULT_TABLE_VERSION
VERSION and its methods.@Deprecated public static final HoodieFileFormat DEFAULT_BASE_FILE_FORMAT
BASE_FILE_FORMAT and its methods.@Deprecated public static final HoodieFileFormat DEFAULT_LOG_FILE_FORMAT
LOG_FILE_FORMAT and its methods.@Deprecated public static final String DEFAULT_PAYLOAD_CLASS
PAYLOAD_CLASS_NAME and its methods.@Deprecated public static final String DEFAULT_BOOTSTRAP_INDEX_CLASS
BOOTSTRAP_INDEX_CLASS_NAME and its methods.@Deprecated public static final String DEFAULT_ARCHIVELOG_FOLDER
ARCHIVELOG_FOLDER and its methods.public HoodieTableConfig(org.apache.hadoop.fs.FileSystem fs,
String metaPath,
String payloadClassName)
public HoodieTableConfig()
public static void recover(org.apache.hadoop.fs.FileSystem fs,
org.apache.hadoop.fs.Path metadataFolder)
throws IOException
IOExceptionpublic static void update(org.apache.hadoop.fs.FileSystem fs,
org.apache.hadoop.fs.Path metadataFolder,
Properties updatedProps)
public static void delete(org.apache.hadoop.fs.FileSystem fs,
org.apache.hadoop.fs.Path metadataFolder,
Set<String> deletedProps)
public static void create(org.apache.hadoop.fs.FileSystem fs,
org.apache.hadoop.fs.Path metadataFolder,
Properties properties)
throws IOException
IOExceptionpublic static long generateChecksum(Properties props)
public static boolean validateChecksum(Properties props)
public HoodieTableType getTableType()
public Option<TimelineLayoutVersion> getTimelineLayoutVersion()
public HoodieTableVersion getTableVersion()
public void setTableVersion(HoodieTableVersion tableVersion)
public String getPayloadClass()
public String getPreCombineField()
public boolean isTablePartitioned()
@Deprecated public String getPartitionFieldProp()
getPartitionFields() insteadpublic String getBootstrapIndexClass()
public static String getDefaultBootstrapIndexClass(Properties props)
public Option<org.apache.avro.Schema> getTableCreateSchema()
public String getDatabaseName()
public String getTableName()
public HoodieFileFormat getBaseFileFormat()
public HoodieFileFormat getLogFileFormat()
public String getArchivelogFolder()
public boolean populateMetaFields()
public String getRecordKeyFieldProp()
public String getKeyGeneratorClassName()
public String getHiveStylePartitioningEnable()
public String getUrlEncodePartitioning()
public Boolean shouldDropPartitionColumns()
public Option<HoodieFileFormat> getPartitionMetafileFormat()
Copyright © 2022 The Apache Software Foundation. All rights reserved.