@Override
                public boolean hasNext() {
                    return sortedIterator.hasNext();
                }
Return the peak memory used so far, in bytes.
indexr-query-opt/src/main/java/org/apache/spark/sql/execution/UnsafeExternalRowSorter.java