Class CoralSemiTransactionalHiveMSCAdapter

java.lang.Object
io.trino.plugin.hive.metastore.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.
  • Constructor Details

  • Method Details

    • getAllDatabases

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

      public com.linkedin.coral.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 com.linkedin.coral.hive.metastore.api.Table getTable(String dbName, String tableName)
      Specified by:
      getTable in interface com.linkedin.coral.common.HiveMetastoreClient