Search in sources :

Example 21 with MPartition

use of org.apache.hadoop.hive.metastore.model.MPartition in project hive by apache.

the class ObjectStore method convertToParts.

private List<Partition> convertToParts(String dbName, String tblName, List<MPartition> mparts) throws MetaException {
    List<Partition> parts = new ArrayList<Partition>(mparts.size());
    for (MPartition mp : mparts) {
        parts.add(convertToPart(dbName, tblName, mp));
        Deadline.checkTimeout();
    }
    return parts;
}
Also used : MPartition(org.apache.hadoop.hive.metastore.model.MPartition) Partition(org.apache.hadoop.hive.metastore.api.Partition) ArrayList(java.util.ArrayList) MPartition(org.apache.hadoop.hive.metastore.model.MPartition)

Aggregations

MPartition (org.apache.hadoop.hive.metastore.model.MPartition)21 MTable (org.apache.hadoop.hive.metastore.model.MTable)14 ArrayList (java.util.ArrayList)11 Partition (org.apache.hadoop.hive.metastore.api.Partition)10 Query (javax.jdo.Query)6 MConstraint (org.apache.hadoop.hive.metastore.model.MConstraint)5 MPartitionColumnPrivilege (org.apache.hadoop.hive.metastore.model.MPartitionColumnPrivilege)5 MPartitionPrivilege (org.apache.hadoop.hive.metastore.model.MPartitionPrivilege)5 MetaException (org.apache.hadoop.hive.metastore.api.MetaException)4 NoSuchObjectException (org.apache.hadoop.hive.metastore.api.NoSuchObjectException)4 MTableColumnPrivilege (org.apache.hadoop.hive.metastore.model.MTableColumnPrivilege)4 MTablePrivilege (org.apache.hadoop.hive.metastore.model.MTablePrivilege)4 LinkedList (java.util.LinkedList)3 List (java.util.List)3 HiveObjectPrivilege (org.apache.hadoop.hive.metastore.api.HiveObjectPrivilege)3 HiveObjectRef (org.apache.hadoop.hive.metastore.api.HiveObjectRef)3 InvalidObjectException (org.apache.hadoop.hive.metastore.api.InvalidObjectException)3 PrincipalPrivilegeSet (org.apache.hadoop.hive.metastore.api.PrincipalPrivilegeSet)3 PrincipalType (org.apache.hadoop.hive.metastore.api.PrincipalType)3 MDatabase (org.apache.hadoop.hive.metastore.model.MDatabase)3