Class HiveMetastoreBackedDeltaLakeMetastore
java.lang.Object
io.trino.plugin.deltalake.metastore.HiveMetastoreBackedDeltaLakeMetastore
- All Implemented Interfaces:
DeltaLakeMetastore
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionHiveMetastoreBackedDeltaLakeMetastore(HiveMetastore delegate, TransactionLogAccess transactionLogAccess, TypeManager typeManager, CachingExtendedStatisticsAccess statisticsAccess, TrinoFileSystemFactory fileSystemFactory) -
Method Summary
Modifier and TypeMethodDescriptionvoidcreateDatabase(Database database) voidcreateTable(ConnectorSession session, Table table, PrincipalPrivileges principalPrivileges) voiddropDatabase(String databaseName, boolean deleteData) voiddropTable(ConnectorSession session, String databaseName, String tableName, boolean deleteData) getAllTables(String databaseName) getDatabase(String databaseName) getMetadata(TableSnapshot tableSnapshot, ConnectorSession session) getProtocol(ConnectorSession session, TableSnapshot tableSnapshot) getSnapshot(SchemaTableName table, ConnectorSession session) static StringgetTableLocation(Table table) getTableLocation(SchemaTableName tableName) getTableStatistics(ConnectorSession session, DeltaLakeTableHandle tableHandle) getValidDataFiles(SchemaTableName table, ConnectorSession session) voidrenameTable(ConnectorSession session, SchemaTableName from, SchemaTableName to) static voidverifyDeltaLakeTable(Table table)
-
Field Details
-
TABLE_PROVIDER_PROPERTY
- See Also:
-
TABLE_PROVIDER_VALUE
- See Also:
-
-
Constructor Details
-
HiveMetastoreBackedDeltaLakeMetastore
public HiveMetastoreBackedDeltaLakeMetastore(HiveMetastore delegate, TransactionLogAccess transactionLogAccess, TypeManager typeManager, CachingExtendedStatisticsAccess statisticsAccess, TrinoFileSystemFactory fileSystemFactory)
-
-
Method Details
-
getAllDatabases
- Specified by:
getAllDatabasesin interfaceDeltaLakeMetastore
-
getDatabase
- Specified by:
getDatabasein interfaceDeltaLakeMetastore
-
getAllTables
- Specified by:
getAllTablesin interfaceDeltaLakeMetastore
-
getTable
- Specified by:
getTablein interfaceDeltaLakeMetastore
-
verifyDeltaLakeTable
-
createDatabase
- Specified by:
createDatabasein interfaceDeltaLakeMetastore
-
dropDatabase
- Specified by:
dropDatabasein interfaceDeltaLakeMetastore
-
createTable
public void createTable(ConnectorSession session, Table table, PrincipalPrivileges principalPrivileges) - Specified by:
createTablein interfaceDeltaLakeMetastore
-
dropTable
public void dropTable(ConnectorSession session, String databaseName, String tableName, boolean deleteData) - Specified by:
dropTablein interfaceDeltaLakeMetastore
-
renameTable
- Specified by:
renameTablein interfaceDeltaLakeMetastore
-
getMetadata
- Specified by:
getMetadatain interfaceDeltaLakeMetastore
-
getProtocol
- Specified by:
getProtocolin interfaceDeltaLakeMetastore
-
getTableLocation
- Specified by:
getTableLocationin interfaceDeltaLakeMetastore
-
getTableLocation
-
getSnapshot
- Specified by:
getSnapshotin interfaceDeltaLakeMetastore
-
getValidDataFiles
- Specified by:
getValidDataFilesin interfaceDeltaLakeMetastore
-
getTableStatistics
public TableStatistics getTableStatistics(ConnectorSession session, DeltaLakeTableHandle tableHandle) - Specified by:
getTableStatisticsin interfaceDeltaLakeMetastore
-
getHiveMetastore
- Specified by:
getHiveMetastorein interfaceDeltaLakeMetastore
-