Github user JoshRosen commented on a diff in the pull request:
https://github.com/apache/spark/pull/7860#discussion_r36039502
--- Diff:
core/src/main/java/org/apache/spark/util/collection/unsafe/sort/UnsafeExternalSorter.java
---
@@ -66,14 +67,29 @@
private final LinkedList<MemoryBlock> allocatedPages = new
LinkedList<MemoryBlock>();
// These variables are reset after spilling:
- private UnsafeInMemorySorter sorter;
+ private UnsafeInMemorySorter inMemSorter;
private MemoryBlock currentPage = null;
private long currentPagePosition = -1;
private long freeSpaceInCurrentPage = 0;
private final LinkedList<UnsafeSorterSpillWriter> spillWriters = new
LinkedList<>();
- public UnsafeExternalSorter(
+ public static UnsafeExternalSorter createWithExistinInMemorySorter(
--- End diff --
Typo: existin -> existing
---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]