public List<Partition> getPartitionsViaPartNames(final String catName, final String dbName,
      final String tblName, GetPartitionsArgs args)
      throws MetaException {
    List<String> partNames = args.getPartNames();
    if (partNames.isEmpty()) {
      return Collections.emptyList();
    }
    return Batchable.runBatched(batchSize, partNames, new Batchable<String, Partition>() {
      @Override
      public List<Partition> run(List<String> input) throws MetaException {
        return getPartitionsByNames(catName, dbName, tblName, partNames, false, args);
      }
    });
  }
Gets partitions by using direct SQL queries.
@param catName Metastore catalog name.
@param dbName Metastore db name.
@param tblName Metastore table name.
@param args additional arguments for getting partitions
@return List of partitions.
standalone-metastore/metastore-server/src/main/java/org/apache/hadoop/hive/metastore/MetaStoreDirectSql.java