A B C D E F G H I M N P R S T V W _ 

A

appendCompletedChunk(Object[]) - Method in class com.fasterxml.sort.util.SegmentedBuffer
Method called to add a full Object array as a chunk buffered within this buffer, and to obtain a new array to fill.

B

BlockingQueueReader<E> - Class in com.fasterxml.sort.util
Base implementation for DataReader that uses a BlockingQueue for getting input.
BlockingQueueReader(BlockingQueue<E>) - Constructor for class com.fasterxml.sort.util.BlockingQueueReader
Deprecated.
BlockingQueueReader(BlockingQueue<E>, E) - Constructor for class com.fasterxml.sort.util.BlockingQueueReader
 
bufferedSize() - Method in class com.fasterxml.sort.util.SegmentedBuffer
Method that can be used to check how many Objects have been buffered within this buffer.
BYTE_CR - Static variable in class com.fasterxml.sort.std.RawTextLineReader
 
BYTE_LF - Static variable in class com.fasterxml.sort.std.RawTextLineReader
 
ByteArrayComparator - Class in com.fasterxml.sort.std
Simple implementation of comparator for byte arrays which will compare using unsigned byte values (meaning that 0xFF is creator than 0x00, for example).
ByteArrayComparator() - Constructor for class com.fasterxml.sort.std.ByteArrayComparator
 

C

cancel() - Method in class com.fasterxml.sort.SorterBase
 
cancel(RuntimeException) - Method in class com.fasterxml.sort.SorterBase
 
cancel(IOException) - Method in class com.fasterxml.sort.SorterBase
 
cancel() - Method in interface com.fasterxml.sort.SortingState
Method that can be used to try to cancel executing sort operation.
cancel(RuntimeException) - Method in interface com.fasterxml.sort.SortingState
Method that can be used to try to cancel executing sort operation.
cancel(IOException) - Method in interface com.fasterxml.sort.SortingState
Method that can be used to try to cancel executing sort operation.
CastingIterator<T> - Class in com.fasterxml.sort.util
 
CastingIterator(Iterator<Object>) - Constructor for class com.fasterxml.sort.util.CastingIterator
 
close() - Method in class com.fasterxml.sort.DataReader
Method for closing the reader.
close() - Method in class com.fasterxml.sort.DataWriter
 
close() - Method in class com.fasterxml.sort.IteratingSorter
 
close() - Method in class com.fasterxml.sort.Merger.PairwiseMerger
 
close() - Method in class com.fasterxml.sort.std.RawTextLineReader
 
close() - Method in class com.fasterxml.sort.std.RawTextLineWriter
 
close() - Method in class com.fasterxml.sort.util.BlockingQueueReader
 
close() - Method in class com.fasterxml.sort.util.CollectionReader
 
CollectionReader<T> - Class in com.fasterxml.sort.util
Simple DataReader implementation that can be used to serve items from a Collection (or Iterator).
CollectionReader(Collection<T>) - Constructor for class com.fasterxml.sort.util.CollectionReader
 
CollectionReader(Iterator<T>) - Constructor for class com.fasterxml.sort.util.CollectionReader
 
com.fasterxml.sort - package com.fasterxml.sort
 
com.fasterxml.sort.std - package com.fasterxml.sort.std
 
com.fasterxml.sort.util - package com.fasterxml.sort.util
 
compare(byte[], byte[]) - Method in class com.fasterxml.sort.std.ByteArrayComparator
 
compare(T, T) - Method in class com.fasterxml.sort.std.StdComparator
 
compare(T, T) - Method in class com.fasterxml.sort.util.NaturalComparator
 
completeAndClearBuffer(Object[], int) - Method in class com.fasterxml.sort.util.SegmentedBuffer
Method called to indicate that the buffering process is now complete; and to construct a combined exactly-sized result array.
constructReader(InputStream) - Method in class com.fasterxml.sort.DataReaderFactory
 
constructReader(InputStream) - Method in class com.fasterxml.sort.std.RawTextLineReader.Factory
 
constructWriter(OutputStream) - Method in class com.fasterxml.sort.DataWriterFactory
 
constructWriter(OutputStream) - Method in class com.fasterxml.sort.std.RawTextLineWriter.Factory
 

D

DataReader<T> - Class in com.fasterxml.sort
 
DataReader() - Constructor for class com.fasterxml.sort.DataReader
 
DataReaderFactory<T> - Class in com.fasterxml.sort
 
DataReaderFactory() - Constructor for class com.fasterxml.sort.DataReaderFactory
 
DataWriter<T> - Class in com.fasterxml.sort
 
DataWriter() - Constructor for class com.fasterxml.sort.DataWriter
 
DataWriterFactory<T> - Class in com.fasterxml.sort
 
DataWriterFactory() - Constructor for class com.fasterxml.sort.DataWriterFactory
 
DEFAULT_LINEFEED - Static variable in class com.fasterxml.sort.std.RawTextLineWriter
 
DEFAULT_MEMORY_USAGE - Static variable in class com.fasterxml.sort.SortConfig
By default we will use 40 megs for pre-sorting.
DEFAULT_MERGE_FACTOR - Static variable in class com.fasterxml.sort.SortConfig
Default merge sort is 16-way sort (using 16 input files concurrently)
DEFAULT_PREFIX - Static variable in class com.fasterxml.sort.std.StdTempFileProvider
Default temporary file prefix to use.
DEFAULT_SUFFIX - Static variable in class com.fasterxml.sort.std.StdTempFileProvider
Default temporary file suffix to use.

E

estimateSizeInBytes(T) - Method in class com.fasterxml.sort.DataReader
Method that should estimate memory usage of given item, for purpose of limiting amount of data kept in memory during pre-sorting phase.
estimateSizeInBytes(T) - Method in class com.fasterxml.sort.Merger.PairwiseMerger
 
estimateSizeInBytes(byte[]) - Method in class com.fasterxml.sort.std.RawTextLineReader
 
estimateSizeInBytes(E) - Method in class com.fasterxml.sort.util.BlockingQueueReader
 
estimateSizeInBytes(T) - Method in class com.fasterxml.sort.util.CollectionReader
 

F

factory() - Static method in class com.fasterxml.sort.std.RawTextLineReader
Convenience method for instantiating factory to create instances of this DataReader.
factory() - Static method in class com.fasterxml.sort.std.RawTextLineWriter
Convenience method for instantiating factory to create instances of this DataWriter.
factory(byte[]) - Static method in class com.fasterxml.sort.std.RawTextLineWriter
Convenience method for instantiating factory to create instances of this DataWriter.

G

getMaxMemoryUsage() - Method in class com.fasterxml.sort.SortConfig
 
getMergeFactor() - Method in class com.fasterxml.sort.SortConfig
 
getNumberOfPreSortFiles() - Method in class com.fasterxml.sort.SorterBase
 
getNumberOfPreSortFiles() - Method in interface com.fasterxml.sort.SortingState
Accessor for checking how many pre-sort files were created during pre-sort phase.
getNumberOfSortRounds() - Method in class com.fasterxml.sort.SorterBase
 
getNumberOfSortRounds() - Method in interface com.fasterxml.sort.SortingState
Accessor for figuring out how many regular sorting rounds need to be taken to complete sorting, if known.
getPhase() - Method in class com.fasterxml.sort.SorterBase
 
getPhase() - Method in interface com.fasterxml.sort.SortingState
 
getSortRound() - Method in class com.fasterxml.sort.SorterBase
 
getSortRound() - Method in interface com.fasterxml.sort.SortingState
Accessor for checking which sorting round sorter is doing: for pre-sort it basically means number of segment (0-based) that is being processed in-memory, for regular sort it is number of (0-based) sorting round.
getTempFileProvider() - Method in class com.fasterxml.sort.SortConfig
 

H

hasNext() - Method in class com.fasterxml.sort.util.CastingIterator
 

I

initialCapacity() - Method in class com.fasterxml.sort.util.SegmentedBuffer
Helper method that can be used to check how much free capacity will this instance start with.
isCompleted() - Method in class com.fasterxml.sort.SorterBase
 
isCompleted() - Method in interface com.fasterxml.sort.SortingState
Accessor for determining whether sorting has been successfully completed or not.
isPreSorting() - Method in class com.fasterxml.sort.SorterBase
 
isPreSorting() - Method in interface com.fasterxml.sort.SortingState
Accessor for determining whether sorter is in its in-memory pre-sorting phase.
isSorting() - Method in class com.fasterxml.sort.SorterBase
 
isSorting() - Method in interface com.fasterxml.sort.SortingState
Accessor for determining whether sorter is in regular merge-sort phase or not.
IterableSorterException - Exception in com.fasterxml.sort
We need an unchecked exception to work with Iterator, and want a specific subtype to catch.
IterableSorterException(IOException) - Constructor for exception com.fasterxml.sort.IterableSorterException
 
IteratingSorter<T> - Class in com.fasterxml.sort
 
IteratingSorter(SortConfig, DataReaderFactory<T>, DataWriterFactory<T>, Comparator<T>) - Constructor for class com.fasterxml.sort.IteratingSorter
 
IteratingSorter() - Constructor for class com.fasterxml.sort.IteratingSorter
 
IteratingSorter(SortConfig) - Constructor for class com.fasterxml.sort.IteratingSorter
 

M

main(String[]) - Static method in class com.fasterxml.sort.std.TextFileSorter
 
MAX_HEAP_FOR_PRESORT - Static variable in class com.fasterxml.sort.std.TextFileSorter
Let's limit maximum memory used for pre-sorting when invoked from command-line to be 256 megs
merge(List<File>, DataWriter<T>) - Method in class com.fasterxml.sort.SorterBase
Main-level merge method that sorts the given input and writes to final output.
merge(List<File>) - Method in class com.fasterxml.sort.SorterBase
Main-level merge method that sorts the given input.
mergedReader(Comparator<T>, List<DataReader<T>>) - Static method in class com.fasterxml.sort.Merger
 
Merger<T> - Class in com.fasterxml.sort
Object used to merge items from multiple input sources into one.
Merger(Comparator<T>) - Constructor for class com.fasterxml.sort.Merger
 
Merger.PairwiseMerger<T> - Class in com.fasterxml.sort
 
Merger.PairwiseMerger(Comparator<T>, DataReader<T>, DataReader<T>) - Constructor for class com.fasterxml.sort.Merger.PairwiseMerger
 
MIN_HEAP_FOR_PRESORT - Static variable in class com.fasterxml.sort.std.TextFileSorter
Also just in case our calculations are wrong, require 10 megs for pre-sort anyway (if invoked from CLI)

N

NaturalComparator<T extends Comparable<T>> - Class in com.fasterxml.sort.util
Simple Comparator implementation that can be used when items to compare have "natural" sorting order that can be used via Comparable interface.
NaturalComparator() - Constructor for class com.fasterxml.sort.util.NaturalComparator
 
next() - Method in class com.fasterxml.sort.util.CastingIterator
 

P

provide() - Method in class com.fasterxml.sort.std.StdTempFileProvider
 
provide() - Method in interface com.fasterxml.sort.TempFileProvider
 

R

RawTextLineReader - Class in com.fasterxml.sort.std
Efficient reader for data that consists of text lines, i.e.
RawTextLineReader(InputStream) - Constructor for class com.fasterxml.sort.std.RawTextLineReader
 
RawTextLineReader.Factory - Class in com.fasterxml.sort.std
 
RawTextLineReader.Factory() - Constructor for class com.fasterxml.sort.std.RawTextLineReader.Factory
 
RawTextLineWriter - Class in com.fasterxml.sort.std
 
RawTextLineWriter(OutputStream) - Constructor for class com.fasterxml.sort.std.RawTextLineWriter
 
RawTextLineWriter(OutputStream, byte[]) - Constructor for class com.fasterxml.sort.std.RawTextLineWriter
 
RawTextLineWriter.Factory - Class in com.fasterxml.sort.std
Basic factory implementation.
RawTextLineWriter.Factory() - Constructor for class com.fasterxml.sort.std.RawTextLineWriter.Factory
 
RawTextLineWriter.Factory(byte[]) - Constructor for class com.fasterxml.sort.std.RawTextLineWriter.Factory
 
RawTextLineWriter.Factory(byte[], boolean) - Constructor for class com.fasterxml.sort.std.RawTextLineWriter.Factory
 
readNext() - Method in class com.fasterxml.sort.DataReader
Method for reading the next data item; will return null to indicate end of input, otherwise return a non-null item.
readNext() - Method in class com.fasterxml.sort.Merger.PairwiseMerger
 
readNext() - Method in class com.fasterxml.sort.std.RawTextLineReader
 
readNext() - Method in class com.fasterxml.sort.util.BlockingQueueReader
 
readNext() - Method in class com.fasterxml.sort.util.CollectionReader
 
remove() - Method in class com.fasterxml.sort.util.CastingIterator
 
resetAndStart() - Method in class com.fasterxml.sort.util.SegmentedBuffer
Method called to start buffering process.

S

SegmentedBuffer - Class in com.fasterxml.sort.util
Helper class used instead of a standard JDK list or buffer, to avoid constant re-allocations.
SegmentedBuffer() - Constructor for class com.fasterxml.sort.util.SegmentedBuffer
 
sort(DataReader<T>) - Method in class com.fasterxml.sort.IteratingSorter
Method that will perform full sort on input data read using given DataReader.
sort(InputStream, OutputStream) - Method in class com.fasterxml.sort.Sorter
Method that will perform full sort on specified input, writing results into specified destination.
sort(DataReader<T>, DataWriter<T>) - Method in class com.fasterxml.sort.Sorter
Method that will perform full sort on input data read using given DataReader, and written out using specified DataWriter.
SortConfig - Class in com.fasterxml.sort
Configuration object used for changing details of sorting process.
SortConfig() - Constructor for class com.fasterxml.sort.SortConfig
 
SortConfig(SortConfig, int) - Constructor for class com.fasterxml.sort.SortConfig
 
SortConfig(SortConfig, long) - Constructor for class com.fasterxml.sort.SortConfig
 
SortConfig(SortConfig, TempFileProvider) - Constructor for class com.fasterxml.sort.SortConfig
 
Sorter<T> - Class in com.fasterxml.sort
Main entry point for sorting functionality; object that drives the sorting process from pre-sort to final output.
Sorter(SortConfig, DataReaderFactory<T>, DataWriterFactory<T>, Comparator<T>) - Constructor for class com.fasterxml.sort.Sorter
 
Sorter() - Constructor for class com.fasterxml.sort.Sorter
 
Sorter(SortConfig) - Constructor for class com.fasterxml.sort.Sorter
 
SorterBase<T> - Class in com.fasterxml.sort
 
SorterBase(SortConfig, DataReaderFactory<T>, DataWriterFactory<T>, Comparator<T>) - Constructor for class com.fasterxml.sort.SorterBase
 
SorterBase() - Constructor for class com.fasterxml.sort.SorterBase
 
SorterBase(SortConfig) - Constructor for class com.fasterxml.sort.SorterBase
 
SortingState - Interface in com.fasterxml.sort
Interface that defines how calling application can interact with a Sorter; both by accessing progress information and by requesting cancellation if necessary.
SortingState.Phase - Enum in com.fasterxml.sort
Different phases that sorter goes through
STD_LINEFEED_CR - Static variable in class com.fasterxml.sort.std.RawTextLineWriter
 
STD_LINEFEED_CRLF - Static variable in class com.fasterxml.sort.std.RawTextLineWriter
 
STD_LINEFEED_LF - Static variable in class com.fasterxml.sort.std.RawTextLineWriter
 
StdComparator<T extends Comparable<T>> - Class in com.fasterxml.sort.std
Basic comparator implementation that works on types that implement Comparator.
StdComparator() - Constructor for class com.fasterxml.sort.std.StdComparator
 
StdTempFileProvider - Class in com.fasterxml.sort.std
Default TempFileProvider implementation which uses JDK default temporary file generation mechanism.
StdTempFileProvider() - Constructor for class com.fasterxml.sort.std.StdTempFileProvider
 
StdTempFileProvider(String, String) - Constructor for class com.fasterxml.sort.std.StdTempFileProvider
 

T

TempFileProvider - Interface in com.fasterxml.sort
Interface used for object that can handle constructing of temporary files that are needed during sort and non-final merge phases.
TextFileSorter - Class in com.fasterxml.sort.std
Basic Sorter implementation that operates on text line input.
TextFileSorter() - Constructor for class com.fasterxml.sort.std.TextFileSorter
 
TextFileSorter(SortConfig) - Constructor for class com.fasterxml.sort.std.TextFileSorter
 

V

valueOf(String) - Static method in enum com.fasterxml.sort.SortingState.Phase
Returns the enum constant of this type with the specified name.
values() - Static method in enum com.fasterxml.sort.SortingState.Phase
Returns an array containing the constants of this enum type, in the order they are declared.

W

withComparator(Comparator<T>) - Method in class com.fasterxml.sort.Sorter
 
withMaxMemoryUsage(long) - Method in class com.fasterxml.sort.SortConfig
Method for constructing configuration instance that defines that maximum amount of memory to use for pre-sorting.
withReaderFactory(DataReaderFactory<T>) - Method in class com.fasterxml.sort.Sorter
 
withTempFileProvider(TempFileProvider) - Method in class com.fasterxml.sort.SortConfig
 
withWriterFactory(DataWriterFactory<T>) - Method in class com.fasterxml.sort.Sorter
 
writeEntry(T) - Method in class com.fasterxml.sort.DataWriter
 
writeEntry(byte[]) - Method in class com.fasterxml.sort.std.RawTextLineWriter
 

_

_addBuffering - Variable in class com.fasterxml.sort.std.RawTextLineWriter.Factory
 
_calculateRoundCount(int, int) - Static method in class com.fasterxml.sort.SorterBase
 
_cancelForException - Variable in class com.fasterxml.sort.SorterBase
 
_cancelRequest - Variable in class com.fasterxml.sort.SorterBase
 
_checkForCancel() - Method in class com.fasterxml.sort.SorterBase
 
_checkForCancel(Collection<File>) - Method in class com.fasterxml.sort.SorterBase
 
_closed - Variable in class com.fasterxml.sort.Merger.PairwiseMerger
 
_closed - Variable in class com.fasterxml.sort.std.RawTextLineReader
 
_closed - Variable in class com.fasterxml.sort.std.RawTextLineWriter
 
_closed - Variable in class com.fasterxml.sort.util.BlockingQueueReader
 
_comparator - Variable in class com.fasterxml.sort.Merger
 
_comparator - Variable in class com.fasterxml.sort.SorterBase
Comparator to use for sorting entries; defaults to 'C
_config - Variable in class com.fasterxml.sort.SorterBase
 
_createMergeReader(List<File>) - Method in class com.fasterxml.sort.SorterBase
 
_currentSortRound - Variable in class com.fasterxml.sort.SorterBase
 
_data1 - Variable in class com.fasterxml.sort.Merger.PairwiseMerger
 
_data2 - Variable in class com.fasterxml.sort.Merger.PairwiseMerger
 
_endMarker - Variable in class com.fasterxml.sort.util.BlockingQueueReader
 
_hadCR - Variable in class com.fasterxml.sort.std.RawTextLineReader
Marker we set if the last line ended with a CR, since it may be followed by a trailing LF as part of two-byte linefeed.
_in - Variable in class com.fasterxml.sort.std.RawTextLineReader
 
_inputBuffer - Variable in class com.fasterxml.sort.std.RawTextLineReader
 
_inputEnd - Variable in class com.fasterxml.sort.std.RawTextLineReader
 
_inputPtr - Variable in class com.fasterxml.sort.std.RawTextLineReader
 
_items - Variable in class com.fasterxml.sort.util.CollectionReader
 
_lf - Variable in class com.fasterxml.sort.std.RawTextLineWriter
Linefeed used after entries
_linefeed - Variable in class com.fasterxml.sort.std.RawTextLineWriter.Factory
 
_loadMore() - Method in class com.fasterxml.sort.std.RawTextLineReader
 
_maxMemoryUsage - Variable in class com.fasterxml.sort.SortConfig
 
_merge(List<File>) - Method in class com.fasterxml.sort.SorterBase
 
_merge(List<File>, DataWriter<T>) - Method in class com.fasterxml.sort.SorterBase
 
_mergeFactor - Variable in class com.fasterxml.sort.SortConfig
 
_out - Variable in class com.fasterxml.sort.std.RawTextLineWriter
 
_phase - Variable in class com.fasterxml.sort.SorterBase
 
_prefix - Variable in class com.fasterxml.sort.std.StdTempFileProvider
 
_presort(DataReader<T>, SegmentedBuffer, T, List<File>) - Method in class com.fasterxml.sort.SorterBase
 
_presortFileCount - Variable in class com.fasterxml.sort.SorterBase
 
_queue - Variable in class com.fasterxml.sort.util.BlockingQueueReader
 
_rawComparator() - Method in class com.fasterxml.sort.SorterBase
 
_reader1 - Variable in class com.fasterxml.sort.Merger.PairwiseMerger
 
_reader2 - Variable in class com.fasterxml.sort.Merger.PairwiseMerger
 
_readerFactory - Variable in class com.fasterxml.sort.SorterBase
Factory used for reading intermediate sorted files.
_readMax(DataReader<T>, SegmentedBuffer, long, T) - Method in class com.fasterxml.sort.SorterBase
Helper method that will fill given buffer with data read using given reader, obeying given memory usage constraints.
_readNextSlow(int) - Method in class com.fasterxml.sort.std.RawTextLineReader
 
_skipLF() - Method in class com.fasterxml.sort.std.RawTextLineReader
 
_sortRoundCount - Variable in class com.fasterxml.sort.SorterBase
 
_suffix - Variable in class com.fasterxml.sort.std.StdTempFileProvider
 
_tempFileProvider - Variable in class com.fasterxml.sort.SortConfig
 
_tmpBytes - Variable in class com.fasterxml.sort.std.RawTextLineReader
 
_writeAll(DataWriter<T>, Object[]) - Method in class com.fasterxml.sort.SorterBase
 
_writePresorted(Object[]) - Method in class com.fasterxml.sort.SorterBase
 
_writerFactory - Variable in class com.fasterxml.sort.SorterBase
Factory used for writing intermediate sorted files.
A B C D E F G H I M N P R S T V W _ 

Copyright © 2012-2014 FasterXML. All Rights Reserved.