com.fasterxml.sort
Class Merger<T>

java.lang.Object
  extended by com.fasterxml.sort.DataReader<T>
      extended by com.fasterxml.sort.Merger<T>
Direct Known Subclasses:
Merger.PairwiseMerger

public abstract class Merger<T>
extends DataReader<T>

Object used to merge items from multiple input sources into one.


Nested Class Summary
protected static class Merger.PairwiseMerger<T>
           
 
Field Summary
protected  Comparator<T> _comparator
           
 
Constructor Summary
Merger(Comparator<T> cmp)
           
 
Method Summary
static
<T> DataReader<T>
mergedReader(Comparator<T> cmp, List<DataReader<T>> inputs)
           
 
Methods inherited from class com.fasterxml.sort.DataReader
close, estimateSizeInBytes, readNext
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

_comparator

protected final Comparator<T> _comparator
Constructor Detail

Merger

public Merger(Comparator<T> cmp)
Method Detail

mergedReader

public static <T> DataReader<T> mergedReader(Comparator<T> cmp,
                                             List<DataReader<T>> inputs)
                                  throws IOException
Throws:
IOException


Copyright © 2011. All Rights Reserved.