public class HiveTableOperations extends BaseMetastoreTableOperations
BaseMetastoreTableOperations.CommitStatus
ICEBERG_TABLE_TYPE_VALUE, METADATA_LOCATION_PROP, PREVIOUS_METADATA_LOCATION_PROP, TABLE_TYPE_PROP
Modifier | Constructor and Description |
---|---|
protected |
HiveTableOperations(org.apache.hadoop.conf.Configuration conf,
ClientPool metaClients,
FileIO fileIO,
java.lang.String catalogName,
java.lang.String database,
java.lang.String table) |
Modifier and Type | Method and Description |
---|---|
protected void |
doCommit(TableMetadata base,
TableMetadata metadata) |
protected void |
doRefresh() |
FileIO |
io()
Returns a
FileIO to read and write table data and metadata files. |
protected java.lang.String |
tableName()
The full name of the table used for logging purposes only.
|
static java.lang.String |
translateToIcebergProp(java.lang.String hmsProp)
Provides key translation where necessary between Iceberg and HMS props.
|
checkCommitStatus, commit, current, currentMetadataLocation, currentVersion, disableRefresh, locationProvider, metadataFileLocation, refresh, refreshFromMetadataLocation, refreshFromMetadataLocation, refreshFromMetadataLocation, refreshFromMetadataLocation, requestRefresh, temp, writeNewMetadata
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
encryption, newSnapshotId
protected HiveTableOperations(org.apache.hadoop.conf.Configuration conf, ClientPool metaClients, FileIO fileIO, java.lang.String catalogName, java.lang.String database, java.lang.String table)
public static java.lang.String translateToIcebergProp(java.lang.String hmsProp)
hmsProp
- The HMS property that should be translated to Iceberg propertyprotected java.lang.String tableName()
BaseMetastoreTableOperations
tableName
in class BaseMetastoreTableOperations
public FileIO io()
TableOperations
FileIO
to read and write table data and metadata files.protected void doRefresh()
doRefresh
in class BaseMetastoreTableOperations
protected void doCommit(TableMetadata base, TableMetadata metadata)
doCommit
in class BaseMetastoreTableOperations