Interface NessieStore

    • Method Detail

      • getPartitions

        List<org.apache.hadoop.hive.metastore.api.Partition> getPartitions​(String dbName,
                                                                           String tableName,
                                                                           int max)
                                                                    throws org.apache.hadoop.hive.metastore.api.MetaException,
                                                                           org.apache.hadoop.hive.metastore.api.NoSuchObjectException
        Throws:
        org.apache.hadoop.hive.metastore.api.MetaException
        org.apache.hadoop.hive.metastore.api.NoSuchObjectException
      • alterPartitions

        void alterPartitions​(String db_name,
                             String tbl_name,
                             List<List<String>> part_vals_list,
                             List<org.apache.hadoop.hive.metastore.api.Partition> new_parts)
                      throws org.apache.hadoop.hive.metastore.api.InvalidObjectException,
                             org.apache.hadoop.hive.metastore.api.MetaException
        Throws:
        org.apache.hadoop.hive.metastore.api.InvalidObjectException
        org.apache.hadoop.hive.metastore.api.MetaException
      • listPartitionsPsWithAuth

        List<org.apache.hadoop.hive.metastore.api.Partition> listPartitionsPsWithAuth​(String db_name,
                                                                                      String tbl_name,
                                                                                      List<String> part_vals,
                                                                                      short max_parts,
                                                                                      String userName,
                                                                                      List<String> groupNames)
                                                                               throws org.apache.hadoop.hive.metastore.api.MetaException,
                                                                                      org.apache.hadoop.hive.metastore.api.InvalidObjectException,
                                                                                      org.apache.hadoop.hive.metastore.api.NoSuchObjectException
        Throws:
        org.apache.hadoop.hive.metastore.api.MetaException
        org.apache.hadoop.hive.metastore.api.InvalidObjectException
        org.apache.hadoop.hive.metastore.api.NoSuchObjectException
      • alterPartition

        void alterPartition​(String db_name,
                            String tbl_name,
                            List<String> part_vals,
                            org.apache.hadoop.hive.metastore.api.Partition new_part)
                     throws org.apache.hadoop.hive.metastore.api.InvalidObjectException,
                            org.apache.hadoop.hive.metastore.api.MetaException
        Throws:
        org.apache.hadoop.hive.metastore.api.InvalidObjectException
        org.apache.hadoop.hive.metastore.api.MetaException
      • getPartitionsByExpr

        boolean getPartitionsByExpr​(String dbName,
                                    String tblName,
                                    byte[] expr,
                                    String defaultPartitionName,
                                    short maxParts,
                                    List<org.apache.hadoop.hive.metastore.api.Partition> result)
                             throws org.apache.thrift.TException
        Throws:
        org.apache.thrift.TException
      • getAllTables

        List<String> getAllTables​(String dbName)
                           throws org.apache.hadoop.hive.metastore.api.MetaException
        Throws:
        org.apache.hadoop.hive.metastore.api.MetaException
      • dropTable

        boolean dropTable​(String dbName,
                          String tableName)
                   throws org.apache.hadoop.hive.metastore.api.MetaException,
                          org.apache.hadoop.hive.metastore.api.NoSuchObjectException,
                          org.apache.hadoop.hive.metastore.api.InvalidObjectException,
                          org.apache.hadoop.hive.metastore.api.InvalidInputException
        Throws:
        org.apache.hadoop.hive.metastore.api.MetaException
        org.apache.hadoop.hive.metastore.api.NoSuchObjectException
        org.apache.hadoop.hive.metastore.api.InvalidObjectException
        org.apache.hadoop.hive.metastore.api.InvalidInputException
      • addPartitions

        boolean addPartitions​(String dbName,
                              String tblName,
                              List<org.apache.hadoop.hive.metastore.api.Partition> parts)
                       throws org.apache.hadoop.hive.metastore.api.InvalidObjectException,
                              org.apache.hadoop.hive.metastore.api.MetaException
        Throws:
        org.apache.hadoop.hive.metastore.api.InvalidObjectException
        org.apache.hadoop.hive.metastore.api.MetaException
      • dropDatabase

        boolean dropDatabase​(String dbname)
                      throws org.apache.hadoop.hive.metastore.api.NoSuchObjectException,
                             org.apache.hadoop.hive.metastore.api.MetaException
        Throws:
        org.apache.hadoop.hive.metastore.api.NoSuchObjectException
        org.apache.hadoop.hive.metastore.api.MetaException
      • alterDatabase

        boolean alterDatabase​(String dbname,
                              org.apache.hadoop.hive.metastore.api.Database db)
                       throws org.apache.hadoop.hive.metastore.api.NoSuchObjectException,
                              org.apache.hadoop.hive.metastore.api.MetaException
        Throws:
        org.apache.hadoop.hive.metastore.api.NoSuchObjectException
        org.apache.hadoop.hive.metastore.api.MetaException
      • getTable

        org.apache.hadoop.hive.metastore.api.Table getTable​(String dbName,
                                                            String tableName)
                                                     throws org.apache.hadoop.hive.metastore.api.MetaException
        Throws:
        org.apache.hadoop.hive.metastore.api.MetaException
      • addPartitions

        boolean addPartitions​(String dbName,
                              String tblName,
                              org.apache.hadoop.hive.metastore.partition.spec.PartitionSpecProxy partitionSpec,
                              boolean ifNotExists)
                       throws org.apache.hadoop.hive.metastore.api.InvalidObjectException,
                              org.apache.hadoop.hive.metastore.api.MetaException
        Throws:
        org.apache.hadoop.hive.metastore.api.InvalidObjectException
        org.apache.hadoop.hive.metastore.api.MetaException
      • getPartitionsWithAuth

        List<org.apache.hadoop.hive.metastore.api.Partition> getPartitionsWithAuth​(String dbName,
                                                                                   String tblName,
                                                                                   short maxParts,
                                                                                   String userName,
                                                                                   List<String> groupNames)
                                                                            throws org.apache.hadoop.hive.metastore.api.MetaException,
                                                                                   org.apache.hadoop.hive.metastore.api.NoSuchObjectException,
                                                                                   org.apache.hadoop.hive.metastore.api.InvalidObjectException
        Throws:
        org.apache.hadoop.hive.metastore.api.MetaException
        org.apache.hadoop.hive.metastore.api.NoSuchObjectException
        org.apache.hadoop.hive.metastore.api.InvalidObjectException
      • createTable

        void createTable​(org.apache.hadoop.hive.metastore.api.Table tbl)
                  throws org.apache.hadoop.hive.metastore.api.InvalidObjectException,
                         org.apache.hadoop.hive.metastore.api.MetaException
        Throws:
        org.apache.hadoop.hive.metastore.api.InvalidObjectException
        org.apache.hadoop.hive.metastore.api.MetaException
      • createDatabase

        void createDatabase​(org.apache.hadoop.hive.metastore.api.Database db)
                     throws org.apache.hadoop.hive.metastore.api.InvalidObjectException,
                            org.apache.hadoop.hive.metastore.api.MetaException
        Throws:
        org.apache.hadoop.hive.metastore.api.InvalidObjectException
        org.apache.hadoop.hive.metastore.api.MetaException
      • addPartition

        boolean addPartition​(org.apache.hadoop.hive.metastore.api.Partition part)
                      throws org.apache.hadoop.hive.metastore.api.InvalidObjectException,
                             org.apache.hadoop.hive.metastore.api.MetaException
        Throws:
        org.apache.hadoop.hive.metastore.api.InvalidObjectException
        org.apache.hadoop.hive.metastore.api.MetaException
      • getDatabaseCount

        int getDatabaseCount()
                      throws org.apache.hadoop.hive.metastore.api.MetaException
        Throws:
        org.apache.hadoop.hive.metastore.api.MetaException
      • getTableCount

        int getTableCount()
                   throws org.apache.hadoop.hive.metastore.api.MetaException
        Throws:
        org.apache.hadoop.hive.metastore.api.MetaException
      • getPartitionCount

        int getPartitionCount()
                       throws org.apache.hadoop.hive.metastore.api.MetaException
        Throws:
        org.apache.hadoop.hive.metastore.api.MetaException
      • getMetaStoreSchemaVersion

        String getMetaStoreSchemaVersion()
                                  throws org.apache.hadoop.hive.metastore.api.MetaException
        Throws:
        org.apache.hadoop.hive.metastore.api.MetaException
      • dropPartition

        boolean dropPartition​(String dbName,
                              String tableName,
                              List<String> part_vals)
                       throws org.apache.hadoop.hive.metastore.api.MetaException,
                              org.apache.hadoop.hive.metastore.api.NoSuchObjectException,
                              org.apache.hadoop.hive.metastore.api.InvalidObjectException,
                              org.apache.hadoop.hive.metastore.api.InvalidInputException
        Throws:
        org.apache.hadoop.hive.metastore.api.MetaException
        org.apache.hadoop.hive.metastore.api.NoSuchObjectException
        org.apache.hadoop.hive.metastore.api.InvalidObjectException
        org.apache.hadoop.hive.metastore.api.InvalidInputException
      • getTableMeta

        List<org.apache.hadoop.hive.metastore.api.TableMeta> getTableMeta​(String dbNames,
                                                                          String tableNames,
                                                                          List<String> tableTypes)
                                                                   throws org.apache.hadoop.hive.metastore.api.MetaException
        Throws:
        org.apache.hadoop.hive.metastore.api.MetaException
      • getAllDatabases

        List<String> getAllDatabases()
                              throws org.apache.hadoop.hive.metastore.api.MetaException
        Throws:
        org.apache.hadoop.hive.metastore.api.MetaException
      • listTableNamesByFilter

        List<String> listTableNamesByFilter​(String dbName,
                                            String filter,
                                            short max_tables)
                                     throws org.apache.hadoop.hive.metastore.api.MetaException,
                                            org.apache.hadoop.hive.metastore.api.UnknownDBException
        Throws:
        org.apache.hadoop.hive.metastore.api.MetaException
        org.apache.hadoop.hive.metastore.api.UnknownDBException
      • alterTable

        void alterTable​(String dbname,
                        String name,
                        org.apache.hadoop.hive.metastore.api.Table newTable)
                 throws org.apache.hadoop.hive.metastore.api.InvalidObjectException,
                        org.apache.hadoop.hive.metastore.api.MetaException
        Throws:
        org.apache.hadoop.hive.metastore.api.InvalidObjectException
        org.apache.hadoop.hive.metastore.api.MetaException
      • getTableObjectsByName

        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.UnknownDBException
        Throws:
        org.apache.hadoop.hive.metastore.api.MetaException
        org.apache.hadoop.hive.metastore.api.UnknownDBException
      • getPartitionsByNames

        List<org.apache.hadoop.hive.metastore.api.Partition> getPartitionsByNames​(String dbName,
                                                                                  String tblName,
                                                                                  List<String> partNames)
                                                                           throws org.apache.hadoop.hive.metastore.api.MetaException,
                                                                                  org.apache.hadoop.hive.metastore.api.NoSuchObjectException
        Throws:
        org.apache.hadoop.hive.metastore.api.MetaException
        org.apache.hadoop.hive.metastore.api.NoSuchObjectException
      • doesPartitionExist

        boolean doesPartitionExist​(String dbName,
                                   String tableName,
                                   List<String> part_vals)
                            throws org.apache.hadoop.hive.metastore.api.MetaException,
                                   org.apache.hadoop.hive.metastore.api.NoSuchObjectException
        Throws:
        org.apache.hadoop.hive.metastore.api.MetaException
        org.apache.hadoop.hive.metastore.api.NoSuchObjectException
      • getPartitionsByFilter

        List<org.apache.hadoop.hive.metastore.api.Partition> getPartitionsByFilter​(String dbName,
                                                                                   String tblName,
                                                                                   String filter,
                                                                                   short maxParts)
                                                                            throws org.apache.hadoop.hive.metastore.api.MetaException,
                                                                                   org.apache.hadoop.hive.metastore.api.NoSuchObjectException
        Throws:
        org.apache.hadoop.hive.metastore.api.MetaException
        org.apache.hadoop.hive.metastore.api.NoSuchObjectException
      • getTables

        List<String> getTables​(String dbName,
                               String pattern)
                        throws org.apache.hadoop.hive.metastore.api.MetaException
        Throws:
        org.apache.hadoop.hive.metastore.api.MetaException
      • getPartitionWithAuth

        org.apache.hadoop.hive.metastore.api.Partition getPartitionWithAuth​(String dbName,
                                                                            String tblName,
                                                                            List<String> partVals,
                                                                            String user_name,
                                                                            List<String> group_names)
                                                                     throws org.apache.hadoop.hive.metastore.api.MetaException,
                                                                            org.apache.hadoop.hive.metastore.api.NoSuchObjectException,
                                                                            org.apache.hadoop.hive.metastore.api.InvalidObjectException
        Throws:
        org.apache.hadoop.hive.metastore.api.MetaException
        org.apache.hadoop.hive.metastore.api.NoSuchObjectException
        org.apache.hadoop.hive.metastore.api.InvalidObjectException
      • getDatabase

        org.apache.hadoop.hive.metastore.api.Database getDatabase​(String name)
                                                           throws org.apache.hadoop.hive.metastore.api.NoSuchObjectException
        Throws:
        org.apache.hadoop.hive.metastore.api.NoSuchObjectException
      • getDatabases

        List<String> getDatabases​(String pattern)
                           throws org.apache.hadoop.hive.metastore.api.MetaException
        Throws:
        org.apache.hadoop.hive.metastore.api.MetaException
      • dropPartitions

        void dropPartitions​(String dbName,
                            String tblName,
                            List<String> partNames)
                     throws org.apache.hadoop.hive.metastore.api.MetaException,
                            org.apache.hadoop.hive.metastore.api.NoSuchObjectException
        Throws:
        org.apache.hadoop.hive.metastore.api.MetaException
        org.apache.hadoop.hive.metastore.api.NoSuchObjectException
      • getPartition

        org.apache.hadoop.hive.metastore.api.Partition getPartition​(String dbName,
                                                                    String tableName,
                                                                    List<String> part_vals)
                                                             throws org.apache.hadoop.hive.metastore.api.MetaException,
                                                                    org.apache.hadoop.hive.metastore.api.NoSuchObjectException
        Throws:
        org.apache.hadoop.hive.metastore.api.MetaException
        org.apache.hadoop.hive.metastore.api.NoSuchObjectException
      • listPartitionNames

        List<String> listPartitionNames​(String db_name,
                                        String tbl_name,
                                        short max_parts)
                                 throws org.apache.hadoop.hive.metastore.api.MetaException
        Throws:
        org.apache.hadoop.hive.metastore.api.MetaException
      • getNumPartitionsByFilter

        int getNumPartitionsByFilter​(String dbName,
                                     String tblName,
                                     String filter)
                              throws org.apache.hadoop.hive.metastore.api.MetaException,
                                     org.apache.hadoop.hive.metastore.api.NoSuchObjectException
        Throws:
        org.apache.hadoop.hive.metastore.api.MetaException
        org.apache.hadoop.hive.metastore.api.NoSuchObjectException
      • getTables

        List<String> getTables​(String dbName,
                               String pattern,
                               org.apache.hadoop.hive.metastore.TableType tableType)
                        throws org.apache.hadoop.hive.metastore.api.MetaException
        Throws:
        org.apache.hadoop.hive.metastore.api.MetaException
      • listPartitionValues

        org.apache.hadoop.hive.metastore.api.PartitionValuesResponse listPartitionValues​(String db_name,
                                                                                         String tbl_name,
                                                                                         List<org.apache.hadoop.hive.metastore.api.FieldSchema> cols,
                                                                                         boolean applyDistinct,
                                                                                         String filter,
                                                                                         boolean ascending,
                                                                                         List<org.apache.hadoop.hive.metastore.api.FieldSchema> order,
                                                                                         long maxParts)
                                                                                  throws org.apache.hadoop.hive.metastore.api.MetaException
        Throws:
        org.apache.hadoop.hive.metastore.api.MetaException
      • getNumPartitionsByExpr

        int getNumPartitionsByExpr​(String dbName,
                                   String tblName,
                                   byte[] expr)
                            throws org.apache.hadoop.hive.metastore.api.MetaException,
                                   org.apache.hadoop.hive.metastore.api.NoSuchObjectException
        Throws:
        org.apache.hadoop.hive.metastore.api.MetaException
        org.apache.hadoop.hive.metastore.api.NoSuchObjectException
      • listPartitionNamesByFilter

        List<String> listPartitionNamesByFilter​(String db_name,
                                                String tbl_name,
                                                String filter,
                                                short max_parts)
                                         throws org.apache.hadoop.hive.metastore.api.MetaException
        Throws:
        org.apache.hadoop.hive.metastore.api.MetaException
      • getPartitionColsWithStats

        Map<String,​List<String>> getPartitionColsWithStats​(String dbName,
                                                                 String tableName)
                                                          throws org.apache.hadoop.hive.metastore.api.MetaException,
                                                                 org.apache.hadoop.hive.metastore.api.NoSuchObjectException
        Throws:
        org.apache.hadoop.hive.metastore.api.MetaException
        org.apache.hadoop.hive.metastore.api.NoSuchObjectException