Class CoralSemiTransactionalHiveMSCAdapter

  • All Implemented Interfaces:
    com.linkedin.coral.common.HiveMetastoreClient

    public class CoralSemiTransactionalHiveMSCAdapter
    extends Object
    implements com.linkedin.coral.common.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.common.HiveMetastoreClient
      • getDatabase

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

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

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