public List<Partition> getPartitionsByNames(Table tbl, List<String> partNames)
      throws HiveException {
    return getPartitionsByNames(tbl, partNames, false);
  }
Get all partitions of the table that matches the list of given partition names.

@param tbl
         object for which partition is needed. Must be partitioned.
@param partNames
         list of partition names
@return list of partition objects
@throws HiveException
ql/src/java/org/apache/hadoop/hive/ql/metadata/Hive.java