Class AbstractMetastoreTableOperations
java.lang.Object
io.trino.plugin.iceberg.catalog.AbstractIcebergTableOperations
io.trino.plugin.iceberg.catalog.hms.AbstractMetastoreTableOperations
- All Implemented Interfaces:
IcebergTableOperations,org.apache.iceberg.TableOperations
- Direct Known Subclasses:
FileMetastoreTableOperations,HiveMetastoreTableOperations
@NotThreadSafe
public abstract class AbstractMetastoreTableOperations
extends AbstractIcebergTableOperations
-
Field Summary
FieldsFields inherited from class io.trino.plugin.iceberg.catalog.AbstractIcebergTableOperations
currentMetadata, currentMetadataLocation, database, fileIo, ICEBERG_METASTORE_STORAGE_FORMAT, location, owner, session, shouldRefresh, tableName, version -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedAbstractMetastoreTableOperations(org.apache.iceberg.io.FileIO fileIo, CachingHiveMetastore metastore, ConnectorSession session, String database, String table, Optional<String> owner, Optional<String> location) -
Method Summary
Modifier and TypeMethodDescriptionprotected final voidcommitNewTable(org.apache.iceberg.TableMetadata metadata) protected final StringgetRefreshedLocation(boolean invalidateCaches) protected TablegetTable()protected Table.BuilderupdateMetastoreTable(Table.Builder builder, org.apache.iceberg.TableMetadata metadata, String metadataLocation, Optional<String> previousMetadataLocation) Methods inherited from class io.trino.plugin.iceberg.catalog.AbstractIcebergTableOperations
commit, commitToExistingTable, current, getSchemaTableName, initializeFromMetadata, io, locationProvider, metadataFileLocation, metadataFileLocation, newTableMetadataFilePath, refresh, refresh, refreshFromMetadataLocation, toHiveColumns, writeNewMetadataMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.apache.iceberg.TableOperations
encryption, newSnapshotId, temp
-
Field Details
-
metastore
-
-
Constructor Details
-
AbstractMetastoreTableOperations
protected AbstractMetastoreTableOperations(org.apache.iceberg.io.FileIO fileIo, CachingHiveMetastore metastore, ConnectorSession session, String database, String table, Optional<String> owner, Optional<String> location)
-
-
Method Details
-
getRefreshedLocation
- Specified by:
getRefreshedLocationin classAbstractIcebergTableOperations
-
commitNewTable
protected final void commitNewTable(org.apache.iceberg.TableMetadata metadata) - Specified by:
commitNewTablein classAbstractIcebergTableOperations
-
updateMetastoreTable
protected Table.Builder updateMetastoreTable(Table.Builder builder, org.apache.iceberg.TableMetadata metadata, String metadataLocation, Optional<String> previousMetadataLocation) -
getTable
-