@Override
        public UnsafeRow getKey() {
            return key;
        }
Frees this sorter's in-memory data structures and cleans up its spill files.
indexr-query-opt/src/main/java/org/apache/spark/sql/execution/UnsafeKVExternalSorter.java