类 DlfSessionMetaStoreClient

  • 所有已实现的接口:
    org.apache.hadoop.hive.metastore.IMetaStoreClient

    public class DlfSessionMetaStoreClient
    extends DlfMetaStoreClient
    implements org.apache.hadoop.hive.metastore.IMetaStoreClient
    另请参阅:
    SessionHiveMetaStoreClient
    • 构造器详细资料

      • DlfSessionMetaStoreClient

        public DlfSessionMetaStoreClient​(org.apache.hadoop.conf.Configuration conf,
                                         org.apache.hadoop.hive.metastore.HiveMetaHookLoader hookLoader,
                                         Boolean allowEmbedded)
                                  throws org.apache.hadoop.hive.metastore.api.MetaException
        抛出:
        org.apache.hadoop.hive.metastore.api.MetaException
      • DlfSessionMetaStoreClient

        public DlfSessionMetaStoreClient​(org.apache.hadoop.conf.Configuration hiveConf,
                                         org.apache.hadoop.hive.metastore.HiveMetaHookLoader hiveMetaHookLoader)
                                  throws org.apache.hadoop.hive.metastore.api.MetaException
        抛出:
        org.apache.hadoop.hive.metastore.api.MetaException
    • 方法详细资料

      • getTempTablesForDatabase

        public static Map<String,​org.apache.hadoop.hive.ql.metadata.Table> getTempTablesForDatabase​(String dbName)
      • getTempTablesForDatabase

        public static Map<String,​org.apache.hadoop.hive.ql.metadata.Table> getTempTablesForDatabase​(String dbName,
                                                                                                          String tblName)
        参数:
        dbName - actual database name
        tblName - actual table name or search pattern (for error message)
      • getTempTables

        public static Map<String,​Map<String,​org.apache.hadoop.hive.ql.metadata.Table>> getTempTables()
      • create_table_with_environment_context

        protected void create_table_with_environment_context​(org.apache.hadoop.hive.metastore.api.Table tbl,
                                                             org.apache.hadoop.hive.metastore.api.EnvironmentContext envContext)
                                                      throws org.apache.hadoop.hive.metastore.api.AlreadyExistsException,
                                                             org.apache.hadoop.hive.metastore.api.InvalidObjectException,
                                                             org.apache.hadoop.hive.metastore.api.MetaException,
                                                             org.apache.hadoop.hive.metastore.api.NoSuchObjectException,
                                                             org.apache.thrift.TException
        覆盖:
        create_table_with_environment_context 在类中 DlfMetaStoreClient
        抛出:
        org.apache.hadoop.hive.metastore.api.AlreadyExistsException
        org.apache.hadoop.hive.metastore.api.InvalidObjectException
        org.apache.hadoop.hive.metastore.api.MetaException
        org.apache.hadoop.hive.metastore.api.NoSuchObjectException
        org.apache.thrift.TException
      • drop_table_with_environment_context

        protected void drop_table_with_environment_context​(String dbname,
                                                           String name,
                                                           boolean deleteData,
                                                           boolean ignoreUnknownTable,
                                                           org.apache.hadoop.hive.metastore.api.EnvironmentContext envContext)
                                                    throws org.apache.hadoop.hive.metastore.api.MetaException,
                                                           org.apache.thrift.TException,
                                                           org.apache.hadoop.hive.metastore.api.NoSuchObjectException,
                                                           UnsupportedOperationException
        覆盖:
        drop_table_with_environment_context 在类中 DlfMetaStoreClient
        抛出:
        org.apache.hadoop.hive.metastore.api.MetaException
        org.apache.thrift.TException
        org.apache.hadoop.hive.metastore.api.NoSuchObjectException
        UnsupportedOperationException
      • getTable

        public org.apache.hadoop.hive.metastore.api.Table getTable​(String dbname,
                                                                   String name)
                                                            throws org.apache.hadoop.hive.metastore.api.MetaException,
                                                                   org.apache.thrift.TException,
                                                                   org.apache.hadoop.hive.metastore.api.NoSuchObjectException
        指定者:
        getTable 在接口中 org.apache.hadoop.hive.metastore.IMetaStoreClient
        覆盖:
        getTable 在类中 DlfMetaStoreClient
        抛出:
        org.apache.hadoop.hive.metastore.api.MetaException
        org.apache.thrift.TException
        org.apache.hadoop.hive.metastore.api.NoSuchObjectException
      • getAllTables

        public List<String> getAllTables​(String dbName)
                                  throws org.apache.thrift.TException
        指定者:
        getAllTables 在接口中 org.apache.hadoop.hive.metastore.IMetaStoreClient
        覆盖:
        getAllTables 在类中 DlfMetaStoreClient
        抛出:
        org.apache.thrift.TException
      • getTables

        public List<String> getTables​(String dbName,
                                      String tablePattern)
                               throws org.apache.thrift.TException
        指定者:
        getTables 在接口中 org.apache.hadoop.hive.metastore.IMetaStoreClient
        覆盖:
        getTables 在类中 DlfMetaStoreClient
        抛出:
        org.apache.thrift.TException
      • getTableMeta

        public List<org.apache.hadoop.hive.metastore.api.TableMeta> getTableMeta​(String dbPatterns,
                                                                                 String tablePatterns,
                                                                                 List<String> tableTypes)
                                                                          throws org.apache.hadoop.hive.metastore.api.MetaException,
                                                                                 org.apache.thrift.TException
        指定者:
        getTableMeta 在接口中 org.apache.hadoop.hive.metastore.IMetaStoreClient
        覆盖:
        getTableMeta 在类中 DlfMetaStoreClient
        抛出:
        org.apache.hadoop.hive.metastore.api.MetaException
        org.apache.thrift.TException
      • getTableObjectsByName

        public List<org.apache.hadoop.hive.metastore.api.Table> getTableObjectsByName​(String dbName,
                                                                                      List<String> tableNames)
                                                                               throws org.apache.hadoop.hive.metastore.api.MetaException,
                                                                                      org.apache.hadoop.hive.metastore.api.InvalidOperationException,
                                                                                      org.apache.hadoop.hive.metastore.api.UnknownDBException,
                                                                                      org.apache.thrift.TException
        指定者:
        getTableObjectsByName 在接口中 org.apache.hadoop.hive.metastore.IMetaStoreClient
        覆盖:
        getTableObjectsByName 在类中 DlfMetaStoreClient
        抛出:
        org.apache.hadoop.hive.metastore.api.MetaException
        org.apache.hadoop.hive.metastore.api.InvalidOperationException
        org.apache.hadoop.hive.metastore.api.UnknownDBException
        org.apache.thrift.TException
      • tableExists

        public boolean tableExists​(String databaseName,
                                   String tableName)
                            throws org.apache.hadoop.hive.metastore.api.MetaException,
                                   org.apache.thrift.TException,
                                   org.apache.hadoop.hive.metastore.api.UnknownDBException
        指定者:
        tableExists 在接口中 org.apache.hadoop.hive.metastore.IMetaStoreClient
        覆盖:
        tableExists 在类中 DlfMetaStoreClient
        抛出:
        org.apache.hadoop.hive.metastore.api.MetaException
        org.apache.thrift.TException
        org.apache.hadoop.hive.metastore.api.UnknownDBException
      • getSchema

        public List<org.apache.hadoop.hive.metastore.api.FieldSchema> getSchema​(String dbName,
                                                                                String tableName)
                                                                         throws org.apache.hadoop.hive.metastore.api.MetaException,
                                                                                org.apache.thrift.TException,
                                                                                org.apache.hadoop.hive.metastore.api.UnknownTableException,
                                                                                org.apache.hadoop.hive.metastore.api.UnknownDBException
        指定者:
        getSchema 在接口中 org.apache.hadoop.hive.metastore.IMetaStoreClient
        覆盖:
        getSchema 在类中 DlfMetaStoreClient
        抛出:
        org.apache.hadoop.hive.metastore.api.MetaException
        org.apache.thrift.TException
        org.apache.hadoop.hive.metastore.api.UnknownTableException
        org.apache.hadoop.hive.metastore.api.UnknownDBException
      • alter_table

        @Deprecated
        public void alter_table​(String dbname,
                                String tbl_name,
                                org.apache.hadoop.hive.metastore.api.Table new_tbl,
                                boolean cascade)
                         throws org.apache.hadoop.hive.metastore.api.InvalidOperationException,
                                org.apache.hadoop.hive.metastore.api.MetaException,
                                org.apache.thrift.TException
        已过时。
        指定者:
        alter_table 在接口中 org.apache.hadoop.hive.metastore.IMetaStoreClient
        覆盖:
        alter_table 在类中 DlfMetaStoreClient
        抛出:
        org.apache.hadoop.hive.metastore.api.InvalidOperationException
        org.apache.hadoop.hive.metastore.api.MetaException
        org.apache.thrift.TException
      • alter_table

        public void alter_table​(String dbname,
                                String tbl_name,
                                org.apache.hadoop.hive.metastore.api.Table new_tbl)
                         throws org.apache.hadoop.hive.metastore.api.InvalidOperationException,
                                org.apache.hadoop.hive.metastore.api.MetaException,
                                org.apache.thrift.TException
        指定者:
        alter_table 在接口中 org.apache.hadoop.hive.metastore.IMetaStoreClient
        覆盖:
        alter_table 在类中 DlfMetaStoreClient
        抛出:
        org.apache.hadoop.hive.metastore.api.InvalidOperationException
        org.apache.hadoop.hive.metastore.api.MetaException
        org.apache.thrift.TException
      • alter_table_with_environmentContext

        public void alter_table_with_environmentContext​(String dbname,
                                                        String tbl_name,
                                                        org.apache.hadoop.hive.metastore.api.Table new_tbl,
                                                        org.apache.hadoop.hive.metastore.api.EnvironmentContext envContext)
                                                 throws org.apache.hadoop.hive.metastore.api.InvalidOperationException,
                                                        org.apache.hadoop.hive.metastore.api.MetaException,
                                                        org.apache.thrift.TException
        指定者:
        alter_table_with_environmentContext 在接口中 org.apache.hadoop.hive.metastore.IMetaStoreClient
        覆盖:
        alter_table_with_environmentContext 在类中 DlfMetaStoreClient
        抛出:
        org.apache.hadoop.hive.metastore.api.InvalidOperationException
        org.apache.hadoop.hive.metastore.api.MetaException
        org.apache.thrift.TException
      • get_privilege_set

        public org.apache.hadoop.hive.metastore.api.PrincipalPrivilegeSet get_privilege_set​(org.apache.hadoop.hive.metastore.api.HiveObjectRef hiveObject,
                                                                                            String userName,
                                                                                            List<String> groupNames)
                                                                                     throws org.apache.hadoop.hive.metastore.api.MetaException,
                                                                                            org.apache.thrift.TException
        指定者:
        get_privilege_set 在接口中 org.apache.hadoop.hive.metastore.IMetaStoreClient
        覆盖:
        get_privilege_set 在类中 DlfMetaStoreClient
        抛出:
        org.apache.hadoop.hive.metastore.api.MetaException
        org.apache.thrift.TException
      • setPartitionColumnStatistics

        public boolean setPartitionColumnStatistics​(org.apache.hadoop.hive.metastore.api.SetPartitionsStatsRequest request)
                                             throws org.apache.hadoop.hive.metastore.api.NoSuchObjectException,
                                                    org.apache.hadoop.hive.metastore.api.InvalidObjectException,
                                                    org.apache.hadoop.hive.metastore.api.MetaException,
                                                    org.apache.thrift.TException,
                                                    org.apache.hadoop.hive.metastore.api.InvalidInputException
        指定者:
        setPartitionColumnStatistics 在接口中 org.apache.hadoop.hive.metastore.IMetaStoreClient
        覆盖:
        setPartitionColumnStatistics 在类中 DlfMetaStoreClient
        抛出:
        org.apache.hadoop.hive.metastore.api.NoSuchObjectException
        org.apache.hadoop.hive.metastore.api.InvalidObjectException
        org.apache.hadoop.hive.metastore.api.MetaException
        org.apache.thrift.TException
        org.apache.hadoop.hive.metastore.api.InvalidInputException
      • getTableColumnStatistics

        public List<org.apache.hadoop.hive.metastore.api.ColumnStatisticsObj> getTableColumnStatistics​(String dbName,
                                                                                                       String tableName,
                                                                                                       List<String> colNames)
                                                                                                throws org.apache.hadoop.hive.metastore.api.NoSuchObjectException,
                                                                                                       org.apache.hadoop.hive.metastore.api.MetaException,
                                                                                                       org.apache.thrift.TException,
                                                                                                       org.apache.hadoop.hive.metastore.api.InvalidInputException,
                                                                                                       org.apache.hadoop.hive.metastore.api.InvalidObjectException
        指定者:
        getTableColumnStatistics 在接口中 org.apache.hadoop.hive.metastore.IMetaStoreClient
        覆盖:
        getTableColumnStatistics 在类中 DlfMetaStoreClient
        抛出:
        org.apache.hadoop.hive.metastore.api.NoSuchObjectException
        org.apache.hadoop.hive.metastore.api.MetaException
        org.apache.thrift.TException
        org.apache.hadoop.hive.metastore.api.InvalidInputException
        org.apache.hadoop.hive.metastore.api.InvalidObjectException
      • deleteTableColumnStatistics

        public boolean deleteTableColumnStatistics​(String dbName,
                                                   String tableName,
                                                   String colName)
                                            throws org.apache.hadoop.hive.metastore.api.NoSuchObjectException,
                                                   org.apache.hadoop.hive.metastore.api.InvalidObjectException,
                                                   org.apache.hadoop.hive.metastore.api.MetaException,
                                                   org.apache.thrift.TException,
                                                   org.apache.hadoop.hive.metastore.api.InvalidInputException
        指定者:
        deleteTableColumnStatistics 在接口中 org.apache.hadoop.hive.metastore.IMetaStoreClient
        覆盖:
        deleteTableColumnStatistics 在类中 DlfMetaStoreClient
        抛出:
        org.apache.hadoop.hive.metastore.api.NoSuchObjectException
        org.apache.hadoop.hive.metastore.api.InvalidObjectException
        org.apache.hadoop.hive.metastore.api.MetaException
        org.apache.thrift.TException
        org.apache.hadoop.hive.metastore.api.InvalidInputException
      • isExistsTempLocation

        public org.apache.hadoop.fs.Path isExistsTempLocation​(org.apache.hadoop.hive.metastore.api.Table table,
                                                              org.apache.hadoop.hive.metastore.Warehouse wh,
                                                              org.apache.hadoop.conf.Configuration conf)
                                                       throws org.apache.hadoop.hive.metastore.api.MetaException
        抛出:
        org.apache.hadoop.hive.metastore.api.MetaException