public List < Partition > getPartitionsFromDataset ( ) throws IOException { try ( AutoReturnableObject < IMetaStoreClient > client = getClientPool ( ) . getClient ( ) ) { List < Partition > partitions = HiveUtils . getPartitions ( client . get ( ) , getTable ( ) , Optional . < String > absent ( ) ) ; return sortPartitions ( partitions ) ; } }
This method returns a sorted list of partitions .