public class HoodieTableConfig extends Object implements Serializable
HoodieTableMetaClient,
Serialized Form| Constructor and Description |
|---|
HoodieTableConfig()
Deprecated.
|
HoodieTableConfig(org.apache.hadoop.fs.FileSystem fs,
String metaPath,
String payloadClassName) |
HoodieTableConfig(Properties props) |
| Modifier and Type | Method and Description |
|---|---|
static void |
createHoodieProperties(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).
|
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.
|
HoodieFileFormat |
getLogFileFormat()
Get the log Storage Format.
|
String |
getPayloadClass()
Read the payload class for HoodieRecords from the table properties.
|
String |
getPreCombineField() |
Properties |
getProperties() |
Map<String,String> |
getProps() |
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() |
void |
setTableVersion(HoodieTableVersion tableVersion) |
public static final String HOODIE_PROPERTIES_FILE
public static final String HOODIE_TABLE_NAME_PROP_NAME
public static final String HOODIE_TABLE_TYPE_PROP_NAME
public static final String HOODIE_TABLE_VERSION_PROP_NAME
public static final String HOODIE_TABLE_PRECOMBINE_FIELD
@Deprecated public static final String HOODIE_RO_FILE_FORMAT_PROP_NAME
@Deprecated public static final String HOODIE_RT_FILE_FORMAT_PROP_NAME
public static final String HOODIE_BASE_FILE_FORMAT_PROP_NAME
public static final String HOODIE_LOG_FILE_FORMAT_PROP_NAME
public static final String HOODIE_TIMELINE_LAYOUT_VERSION
public static final String HOODIE_PAYLOAD_CLASS_PROP_NAME
public static final String HOODIE_ARCHIVELOG_FOLDER_PROP_NAME
public static final String HOODIE_BOOTSTRAP_INDEX_CLASS_PROP_NAME
public static final String HOODIE_BOOTSTRAP_BASE_PATH
public static final HoodieTableType DEFAULT_TABLE_TYPE
public static final HoodieTableVersion DEFAULT_TABLE_VERSION
public static final HoodieFileFormat DEFAULT_BASE_FILE_FORMAT
public static final HoodieFileFormat DEFAULT_LOG_FILE_FORMAT
public static final String DEFAULT_PAYLOAD_CLASS
public static final String DEFAULT_BOOTSTRAP_INDEX_CLASS
public static final String DEFAULT_ARCHIVELOG_FOLDER
public HoodieTableConfig(org.apache.hadoop.fs.FileSystem fs,
String metaPath,
String payloadClassName)
public HoodieTableConfig(Properties props)
public HoodieTableConfig()
public static void createHoodieProperties(org.apache.hadoop.fs.FileSystem fs,
org.apache.hadoop.fs.Path metadataFolder,
Properties properties)
throws IOException
IOExceptionpublic HoodieTableType getTableType()
public Option<TimelineLayoutVersion> getTimelineLayoutVersion()
public HoodieTableVersion getTableVersion()
public void setTableVersion(HoodieTableVersion tableVersion)
public String getPayloadClass()
public String getPreCombineField()
public String getBootstrapIndexClass()
public String getTableName()
public HoodieFileFormat getBaseFileFormat()
public HoodieFileFormat getLogFileFormat()
public String getArchivelogFolder()
public Properties getProperties()
Copyright © 2021 The Apache Software Foundation. All rights reserved.