Class 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's SemiTransactionalHiveMetastore to Coral's HiveMetastoreClient. This allows reuse of the hive metastore instantiated by Trino, based on configuration, inside Coral.
    • Method Detail

      • getAllDatabases

        public List<String> getAllDatabases()
        Specified by:
        getAllDatabases in interface com.linkedin.coral.hive.hive2rel.HiveMetastoreClient
      • getDatabase

        public org.apache.hadoop.hive.metastore.api.Database getDatabase​(String dbName)
        Specified by:
        getDatabase in interface com.linkedin.coral.hive.hive2rel.HiveMetastoreClient
      • getAllTables

        public List<String> getAllTables​(String dbName)
        Specified by:
        getAllTables in interface com.linkedin.coral.hive.hive2rel.HiveMetastoreClient
      • getTable

        public org.apache.hadoop.hive.metastore.api.Table getTable​(String dbName,
                                                                   String tableName)
        Specified by:
        getTable in interface com.linkedin.coral.hive.hive2rel.HiveMetastoreClient