Class HiveMetastoreBackedDeltaLakeMetastore
- java.lang.Object
-
- io.trino.plugin.deltalake.metastore.HiveMetastoreBackedDeltaLakeMetastore
-
- All Implemented Interfaces:
DeltaLakeMetastore
public class HiveMetastoreBackedDeltaLakeMetastore extends Object implements DeltaLakeMetastore
-
-
Field Summary
Fields Modifier and Type Field Description static StringTABLE_PROVIDER_PROPERTYstatic StringTABLE_PROVIDER_VALUE
-
Constructor Summary
Constructors Constructor Description HiveMetastoreBackedDeltaLakeMetastore(HiveMetastore delegate, TransactionLogAccess transactionLogAccess, TypeManager typeManager, CachingExtendedStatisticsAccess statisticsAccess)
-
Method Summary
-
-
-
Field Detail
-
TABLE_PROVIDER_PROPERTY
public static final String TABLE_PROVIDER_PROPERTY
- See Also:
- Constant Field Values
-
TABLE_PROVIDER_VALUE
public static final String TABLE_PROVIDER_VALUE
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
HiveMetastoreBackedDeltaLakeMetastore
public HiveMetastoreBackedDeltaLakeMetastore(HiveMetastore delegate, TransactionLogAccess transactionLogAccess, TypeManager typeManager, CachingExtendedStatisticsAccess statisticsAccess)
-
-
Method Detail
-
getAllDatabases
public List<String> getAllDatabases()
- Specified by:
getAllDatabasesin interfaceDeltaLakeMetastore
-
getDatabase
public Optional<Database> getDatabase(String databaseName)
- Specified by:
getDatabasein interfaceDeltaLakeMetastore
-
getAllTables
public List<String> getAllTables(String databaseName)
- Specified by:
getAllTablesin interfaceDeltaLakeMetastore
-
getTable
public Optional<Table> getTable(String databaseName, String tableName)
- Specified by:
getTablein interfaceDeltaLakeMetastore
-
createDatabase
public void createDatabase(Database database)
- Specified by:
createDatabasein interfaceDeltaLakeMetastore
-
dropDatabase
public void dropDatabase(String databaseName, boolean deleteData)
- 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)
- Specified by:
dropTablein interfaceDeltaLakeMetastore
-
getMetadata
public Optional<MetadataEntry> getMetadata(TableSnapshot tableSnapshot, ConnectorSession session)
- Specified by:
getMetadatain interfaceDeltaLakeMetastore
-
getProtocol
public ProtocolEntry getProtocol(ConnectorSession session, TableSnapshot tableSnapshot)
- Specified by:
getProtocolin interfaceDeltaLakeMetastore
-
getTableLocation
public String getTableLocation(SchemaTableName table, ConnectorSession session)
- Specified by:
getTableLocationin interfaceDeltaLakeMetastore
-
getSnapshot
public TableSnapshot getSnapshot(SchemaTableName table, ConnectorSession session)
- Specified by:
getSnapshotin interfaceDeltaLakeMetastore
-
getValidDataFiles
public List<AddFileEntry> getValidDataFiles(SchemaTableName table, ConnectorSession session)
- Specified by:
getValidDataFilesin interfaceDeltaLakeMetastore
-
getTableStatistics
public TableStatistics getTableStatistics(ConnectorSession session, DeltaLakeTableHandle tableHandle)
- Specified by:
getTableStatisticsin interfaceDeltaLakeMetastore
-
getHiveMetastore
public HiveMetastore getHiveMetastore()
- Specified by:
getHiveMetastorein interfaceDeltaLakeMetastore
-
-