public Set<Partition> getAllPartitionsInBatches(Table tbl, int batchSize, int decayingFactor,
       int maxRetries, Map<String, String> partialPartitionSpec, boolean isAuthRequired) throws HiveException {
    return getAllPartitionsInBatches(tbl, batchSize, decayingFactor, maxRetries, partialPartitionSpec, isAuthRequired,
            null, null);
  }
Get all the partitions. Do it in batches if batchSize is more than 0 else get it in one call.
@param tbl table for which partitions are needed
@return list of partition objects
ql/src/java/org/apache/hadoop/hive/ql/metadata/Hive.java