private void sortEntries(List<Entry<U, LongWritable>> entriesList, boolean isAscending) {
      entriesList.sort(isAscending ? comparator : comparator.reversed());
    }
A state class to store intermediate aggregation results.
ql/src/java/org/apache/hadoop/hive/ql/udf/generic/GenericUDAFPercentileCont.java