com.fasterxml.sort.std
Class TextFileSorter

java.lang.Object
  extended by com.fasterxml.sort.Sorter<byte[]>
      extended by com.fasterxml.sort.std.TextFileSorter
All Implemented Interfaces:
SortingState

public class TextFileSorter
extends Sorter<byte[]>

Basic Sorter implementation that operates on text line input.


Nested Class Summary
 
Nested classes/interfaces inherited from interface com.fasterxml.sort.SortingState
SortingState.Phase
 
Field Summary
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)
 
Fields inherited from class com.fasterxml.sort.Sorter
_cancelForException, _cancelRequest, _comparator, _config, _currentSortRound, _phase, _presortFileCount, _readerFactory, _sortRoundCount, _writerFactory
 
Constructor Summary
TextFileSorter()
           
TextFileSorter(SortConfig config)
           
 
Method Summary
static void main(String[] args)
           
 
Methods inherited from class com.fasterxml.sort.Sorter
_calculateRoundCount, _checkForCancel, _checkForCancel, _merge, _merge, _rawComparator, _writeAll, _writePresorted, cancel, cancel, cancel, getNumberOfPreSortFiles, getNumberOfSortRounds, getPhase, getSortRound, isCompleted, isPreSorting, isSorting, merge, presort, sort, sort
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

MAX_HEAP_FOR_PRESORT

public static final long MAX_HEAP_FOR_PRESORT
Let's limit maximum memory used for pre-sorting when invoked from command-line to be 256 megs

See Also:
Constant Field Values

MIN_HEAP_FOR_PRESORT

public static final long MIN_HEAP_FOR_PRESORT
Also just in case our calculations are wrong, require 10 megs for pre-sort anyway (if invoked from CLI)

See Also:
Constant Field Values
Constructor Detail

TextFileSorter

public TextFileSorter()

TextFileSorter

public TextFileSorter(SortConfig config)
Method Detail

main

public static void main(String[] args)
                 throws Exception
Throws:
Exception


Copyright © 2011. All Rights Reserved.