public class TextFileSorter extends Sorter<byte[]>
Sorter implementation that operates on text line input.SortingState.Phase| Modifier and Type | Field and Description |
|---|---|
static long |
MAX_HEAP_FOR_PRESORT
Let's limit maximum memory used for pre-sorting when invoked from command-line to be
256 megs
|
static long |
MIN_HEAP_FOR_PRESORT
Also just in case our calculations are wrong, require 10 megs for pre-sort anyway
(if invoked from CLI)
|
_cancelForException, _cancelRequest, _comparator, _config, _currentSortRound, _phase, _presortFileCount, _readerFactory, _sortRoundCount, _writerFactory| Constructor and Description |
|---|
TextFileSorter() |
TextFileSorter(SortConfig config) |
| Modifier and Type | Method and Description |
|---|---|
static void |
main(String[] args) |
sort, sort, withComparator, withReaderFactory, withWriterFactoryclose, sort_calculateRoundCount, _checkForCancel, _checkForCancel, _createMergeReader, _merge, _merge, _presort, _rawComparator, _readMax, _writeAll, _writePresorted, cancel, cancel, cancel, getNumberOfPreSortFiles, getNumberOfSortRounds, getPhase, getSortRound, isCompleted, isPreSorting, isSorting, merge, mergepublic static final long MAX_HEAP_FOR_PRESORT
public static final long MIN_HEAP_FOR_PRESORT
public TextFileSorter()
public TextFileSorter(SortConfig config)
Copyright © 2022 FasterXML. All rights reserved.