Package io.trino.plugin.hive.metastore
Class CoralSemiTransactionalHiveMSCAdapter
- java.lang.Object
-
- io.trino.plugin.hive.metastore.CoralSemiTransactionalHiveMSCAdapter
-
- All Implemented Interfaces:
com.linkedin.coral.hive.hive2rel.HiveMetastoreClient
public class CoralSemiTransactionalHiveMSCAdapter extends Object implements com.linkedin.coral.hive.hive2rel.HiveMetastoreClient
Class to adapt Trino'sSemiTransactionalHiveMetastoreto Coral'sHiveMetastoreClient. This allows reuse of the hive metastore instantiated by Trino, based on configuration, inside Coral.
-
-
Constructor Summary
Constructors Constructor Description CoralSemiTransactionalHiveMSCAdapter(SemiTransactionalHiveMetastore coralHiveMetastoreClient, HiveIdentity identity)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description List<String>getAllDatabases()List<String>getAllTables(String dbName)org.apache.hadoop.hive.metastore.api.DatabasegetDatabase(String dbName)org.apache.hadoop.hive.metastore.api.TablegetTable(String dbName, String tableName)
-
-
-
Constructor Detail
-
CoralSemiTransactionalHiveMSCAdapter
public CoralSemiTransactionalHiveMSCAdapter(SemiTransactionalHiveMetastore coralHiveMetastoreClient, HiveIdentity identity)
-
-
Method Detail
-
getAllDatabases
public List<String> getAllDatabases()
- Specified by:
getAllDatabasesin interfacecom.linkedin.coral.hive.hive2rel.HiveMetastoreClient
-
getDatabase
public org.apache.hadoop.hive.metastore.api.Database getDatabase(String dbName)
- Specified by:
getDatabasein interfacecom.linkedin.coral.hive.hive2rel.HiveMetastoreClient
-
getAllTables
public List<String> getAllTables(String dbName)
- Specified by:
getAllTablesin interfacecom.linkedin.coral.hive.hive2rel.HiveMetastoreClient
-
-