Class FailureAwareThriftMetastoreClient

    • Method Detail

      • getDatabase

        public org.apache.hadoop.hive.metastore.api.Database getDatabase​(String databaseName)
                                                                  throws org.apache.thrift.TException
        Specified by:
        getDatabase in interface ThriftMetastoreClient
        Throws:
        org.apache.thrift.TException
      • createDatabase

        public void createDatabase​(org.apache.hadoop.hive.metastore.api.Database database)
                            throws org.apache.thrift.TException
        Specified by:
        createDatabase in interface ThriftMetastoreClient
        Throws:
        org.apache.thrift.TException
      • dropDatabase

        public void dropDatabase​(String databaseName,
                                 boolean deleteData,
                                 boolean cascade)
                          throws org.apache.thrift.TException
        Specified by:
        dropDatabase in interface ThriftMetastoreClient
        Throws:
        org.apache.thrift.TException
      • alterDatabase

        public void alterDatabase​(String databaseName,
                                  org.apache.hadoop.hive.metastore.api.Database database)
                           throws org.apache.thrift.TException
        Specified by:
        alterDatabase in interface ThriftMetastoreClient
        Throws:
        org.apache.thrift.TException
      • createTable

        public void createTable​(org.apache.hadoop.hive.metastore.api.Table table)
                         throws org.apache.thrift.TException
        Specified by:
        createTable in interface ThriftMetastoreClient
        Throws:
        org.apache.thrift.TException
      • dropTable

        public void dropTable​(String databaseName,
                              String name,
                              boolean deleteData)
                       throws org.apache.thrift.TException
        Specified by:
        dropTable in interface ThriftMetastoreClient
        Throws:
        org.apache.thrift.TException
      • alterTableWithEnvironmentContext

        public void alterTableWithEnvironmentContext​(String databaseName,
                                                     String tableName,
                                                     org.apache.hadoop.hive.metastore.api.Table newTable,
                                                     org.apache.hadoop.hive.metastore.api.EnvironmentContext context)
                                              throws org.apache.thrift.TException
        Specified by:
        alterTableWithEnvironmentContext in interface ThriftMetastoreClient
        Throws:
        org.apache.thrift.TException
      • getTable

        public org.apache.hadoop.hive.metastore.api.Table getTable​(String databaseName,
                                                                   String tableName)
                                                            throws org.apache.thrift.TException
        Specified by:
        getTable in interface ThriftMetastoreClient
        Throws:
        org.apache.thrift.TException
      • getTableWithCapabilities

        public org.apache.hadoop.hive.metastore.api.Table getTableWithCapabilities​(String databaseName,
                                                                                   String tableName)
                                                                            throws org.apache.thrift.TException
        Specified by:
        getTableWithCapabilities in interface ThriftMetastoreClient
        Throws:
        org.apache.thrift.TException
      • getFields

        public List<org.apache.hadoop.hive.metastore.api.FieldSchema> getFields​(String databaseName,
                                                                                String tableName)
                                                                         throws org.apache.thrift.TException
        Specified by:
        getFields in interface ThriftMetastoreClient
        Throws:
        org.apache.thrift.TException
      • setTableColumnStatistics

        public void setTableColumnStatistics​(String databaseName,
                                             String tableName,
                                             List<org.apache.hadoop.hive.metastore.api.ColumnStatisticsObj> statistics)
                                      throws org.apache.thrift.TException
        Specified by:
        setTableColumnStatistics in interface ThriftMetastoreClient
        Throws:
        org.apache.thrift.TException
      • setPartitionColumnStatistics

        public void setPartitionColumnStatistics​(String databaseName,
                                                 String tableName,
                                                 String partitionName,
                                                 List<org.apache.hadoop.hive.metastore.api.ColumnStatisticsObj> statistics)
                                          throws org.apache.thrift.TException
        Specified by:
        setPartitionColumnStatistics in interface ThriftMetastoreClient
        Throws:
        org.apache.thrift.TException
      • addPartitions

        public int addPartitions​(List<org.apache.hadoop.hive.metastore.api.Partition> newPartitions)
                          throws org.apache.thrift.TException
        Specified by:
        addPartitions in interface ThriftMetastoreClient
        Throws:
        org.apache.thrift.TException
      • dropPartition

        public boolean dropPartition​(String databaseName,
                                     String tableName,
                                     List<String> partitionValues,
                                     boolean deleteData)
                              throws org.apache.thrift.TException
        Specified by:
        dropPartition in interface ThriftMetastoreClient
        Throws:
        org.apache.thrift.TException
      • alterPartition

        public void alterPartition​(String databaseName,
                                   String tableName,
                                   org.apache.hadoop.hive.metastore.api.Partition partition)
                            throws org.apache.thrift.TException
        Specified by:
        alterPartition in interface ThriftMetastoreClient
        Throws:
        org.apache.thrift.TException
      • getPartition

        public org.apache.hadoop.hive.metastore.api.Partition getPartition​(String databaseName,
                                                                           String tableName,
                                                                           List<String> partitionValues)
                                                                    throws org.apache.thrift.TException
        Specified by:
        getPartition in interface ThriftMetastoreClient
        Throws:
        org.apache.thrift.TException
      • listRoles

        public List<org.apache.hadoop.hive.metastore.api.Role> listRoles​(String principalName,
                                                                         org.apache.hadoop.hive.metastore.api.PrincipalType principalType)
                                                                  throws org.apache.thrift.TException
        Specified by:
        listRoles in interface ThriftMetastoreClient
        Throws:
        org.apache.thrift.TException
      • listPrivileges

        public List<org.apache.hadoop.hive.metastore.api.HiveObjectPrivilege> listPrivileges​(String principalName,
                                                                                             org.apache.hadoop.hive.metastore.api.PrincipalType principalType,
                                                                                             org.apache.hadoop.hive.metastore.api.HiveObjectRef hiveObjectRef)
                                                                                      throws org.apache.thrift.TException
        Specified by:
        listPrivileges in interface ThriftMetastoreClient
        Throws:
        org.apache.thrift.TException
      • dropRole

        public void dropRole​(String role)
                      throws org.apache.thrift.TException
        Specified by:
        dropRole in interface ThriftMetastoreClient
        Throws:
        org.apache.thrift.TException
      • grantPrivileges

        public boolean grantPrivileges​(org.apache.hadoop.hive.metastore.api.PrivilegeBag privilegeBag)
                                throws org.apache.thrift.TException
        Specified by:
        grantPrivileges in interface ThriftMetastoreClient
        Throws:
        org.apache.thrift.TException
      • revokePrivileges

        public boolean revokePrivileges​(org.apache.hadoop.hive.metastore.api.PrivilegeBag privilegeBag)
                                 throws org.apache.thrift.TException
        Specified by:
        revokePrivileges in interface ThriftMetastoreClient
        Throws:
        org.apache.thrift.TException
      • grantRole

        public void grantRole​(String role,
                              String granteeName,
                              org.apache.hadoop.hive.metastore.api.PrincipalType granteeType,
                              String grantorName,
                              org.apache.hadoop.hive.metastore.api.PrincipalType grantorType,
                              boolean grantOption)
                       throws org.apache.thrift.TException
        Specified by:
        grantRole in interface ThriftMetastoreClient
        Throws:
        org.apache.thrift.TException
      • revokeRole

        public void revokeRole​(String role,
                               String granteeName,
                               org.apache.hadoop.hive.metastore.api.PrincipalType granteeType,
                               boolean grantOption)
                        throws org.apache.thrift.TException
        Specified by:
        revokeRole in interface ThriftMetastoreClient
        Throws:
        org.apache.thrift.TException
      • listGrantedPrincipals

        public List<org.apache.hadoop.hive.metastore.api.RolePrincipalGrant> listGrantedPrincipals​(String role)
                                                                                            throws org.apache.thrift.TException
        Specified by:
        listGrantedPrincipals in interface ThriftMetastoreClient
        Throws:
        org.apache.thrift.TException
      • listRoleGrants

        public List<org.apache.hadoop.hive.metastore.api.RolePrincipalGrant> listRoleGrants​(String name,
                                                                                            org.apache.hadoop.hive.metastore.api.PrincipalType principalType)
                                                                                     throws org.apache.thrift.TException
        Specified by:
        listRoleGrants in interface ThriftMetastoreClient
        Throws:
        org.apache.thrift.TException
      • setUGI

        public void setUGI​(String userName)
                    throws org.apache.thrift.TException
        Specified by:
        setUGI in interface ThriftMetastoreClient
        Throws:
        org.apache.thrift.TException
      • commitTransaction

        public void commitTransaction​(long transactionId)
                               throws org.apache.thrift.TException
        Specified by:
        commitTransaction in interface ThriftMetastoreClient
        Throws:
        org.apache.thrift.TException
      • sendTransactionHeartbeat

        public void sendTransactionHeartbeat​(long transactionId)
                                      throws org.apache.thrift.TException
        Specified by:
        sendTransactionHeartbeat in interface ThriftMetastoreClient
        Throws:
        org.apache.thrift.TException
      • acquireLock

        public org.apache.hadoop.hive.metastore.api.LockResponse acquireLock​(org.apache.hadoop.hive.metastore.api.LockRequest lockRequest)
                                                                      throws org.apache.thrift.TException
        Specified by:
        acquireLock in interface ThriftMetastoreClient
        Throws:
        org.apache.thrift.TException
      • checkLock

        public org.apache.hadoop.hive.metastore.api.LockResponse checkLock​(long lockId)
                                                                    throws org.apache.thrift.TException
        Specified by:
        checkLock in interface ThriftMetastoreClient
        Throws:
        org.apache.thrift.TException
      • abortTransaction

        public void abortTransaction​(long transactionId)
                              throws org.apache.thrift.TException
        Specified by:
        abortTransaction in interface ThriftMetastoreClient
        Throws:
        org.apache.thrift.TException
      • alterPartitions

        public void alterPartitions​(String dbName,
                                    String tableName,
                                    List<org.apache.hadoop.hive.metastore.api.Partition> partitions,
                                    long writeId)
                             throws org.apache.thrift.TException
        Specified by:
        alterPartitions in interface ThriftMetastoreClient
        Throws:
        org.apache.thrift.TException
      • alterTransactionalTable

        public void alterTransactionalTable​(org.apache.hadoop.hive.metastore.api.Table table,
                                            long transactionId,
                                            long writeId,
                                            org.apache.hadoop.hive.metastore.api.EnvironmentContext context)
                                     throws org.apache.thrift.TException
        Specified by:
        alterTransactionalTable in interface ThriftMetastoreClient
        Throws:
        org.apache.thrift.TException