@Override
        public List<Void> run(List<String> list) throws Exception {
          req.getFilterSpec().setFilters(list);
          req.getFilterSpec().setFilterMode(PartitionFilterMode.BY_NAMES);
          List<Partition> tParts = getPartitionsWithSpecsInternal(tbl, req);
          if (tParts != null) {
            partitions.addAll(tParts);
          }
          return Collections.emptyList();
        }
Get a list of Partitions by filter.
@param tbl The table containing the partitions.
@param filter A string represent partition predicates.
@return a list of partitions satisfying the partition predicates.
@throws HiveException
@throws MetaException
@throws NoSuchObjectException
@throws TException
ql/src/java/org/apache/hadoop/hive/ql/metadata/Hive.java