@InterfaceAudience.Private @InterfaceStability.Unstable public class Merger extends Object
| Modifier and Type | Class and Description | 
|---|---|
| static class  | Merger.Segment<K,V> | 
| Constructor and Description | 
|---|
| Merger() | 
| Modifier and Type | Method and Description | 
|---|---|
| static <K,V> RawKeyValueIterator | merge(org.apache.hadoop.conf.Configuration conf,
     org.apache.hadoop.fs.FileSystem fs,
     Class<K> keyClass,
     Class<V> valueClass,
     org.apache.hadoop.io.compress.CompressionCodec codec,
     List<Merger.Segment<K,V>> segments,
     int mergeFactor,
     int inMemSegments,
     org.apache.hadoop.fs.Path tmpDir,
     org.apache.hadoop.io.RawComparator<K> comparator,
     org.apache.hadoop.util.Progressable reporter,
     boolean sortSegments,
     Counters.Counter readsCounter,
     Counters.Counter writesCounter,
     org.apache.hadoop.util.Progress mergePhase) | 
| static <K,V> RawKeyValueIterator | merge(org.apache.hadoop.conf.Configuration conf,
     org.apache.hadoop.fs.FileSystem fs,
     Class<K> keyClass,
     Class<V> valueClass,
     org.apache.hadoop.io.compress.CompressionCodec codec,
     List<Merger.Segment<K,V>> segments,
     int mergeFactor,
     org.apache.hadoop.fs.Path tmpDir,
     org.apache.hadoop.io.RawComparator<K> comparator,
     org.apache.hadoop.util.Progressable reporter,
     boolean sortSegments,
     Counters.Counter readsCounter,
     Counters.Counter writesCounter,
     org.apache.hadoop.util.Progress mergePhase,
     TaskType taskType) | 
| static <K,V> RawKeyValueIterator | merge(org.apache.hadoop.conf.Configuration conf,
     org.apache.hadoop.fs.FileSystem fs,
     Class<K> keyClass,
     Class<V> valueClass,
     org.apache.hadoop.io.compress.CompressionCodec codec,
     org.apache.hadoop.fs.Path[] inputs,
     boolean deleteInputs,
     int mergeFactor,
     org.apache.hadoop.fs.Path tmpDir,
     org.apache.hadoop.io.RawComparator<K> comparator,
     org.apache.hadoop.util.Progressable reporter,
     Counters.Counter readsCounter,
     Counters.Counter writesCounter,
     Counters.Counter mergedMapOutputsCounter,
     org.apache.hadoop.util.Progress mergePhase) | 
| static <K,V> RawKeyValueIterator | merge(org.apache.hadoop.conf.Configuration conf,
     org.apache.hadoop.fs.FileSystem fs,
     Class<K> keyClass,
     Class<V> valueClass,
     org.apache.hadoop.io.compress.CompressionCodec codec,
     org.apache.hadoop.fs.Path[] inputs,
     boolean deleteInputs,
     int mergeFactor,
     org.apache.hadoop.fs.Path tmpDir,
     org.apache.hadoop.io.RawComparator<K> comparator,
     org.apache.hadoop.util.Progressable reporter,
     Counters.Counter readsCounter,
     Counters.Counter writesCounter,
     org.apache.hadoop.util.Progress mergePhase) | 
| static <K,V> RawKeyValueIterator | merge(org.apache.hadoop.conf.Configuration conf,
     org.apache.hadoop.fs.FileSystem fs,
     Class<K> keyClass,
     Class<V> valueClass,
     List<Merger.Segment<K,V>> segments,
     int mergeFactor,
     int inMemSegments,
     org.apache.hadoop.fs.Path tmpDir,
     org.apache.hadoop.io.RawComparator<K> comparator,
     org.apache.hadoop.util.Progressable reporter,
     boolean sortSegments,
     Counters.Counter readsCounter,
     Counters.Counter writesCounter,
     org.apache.hadoop.util.Progress mergePhase) | 
| static <K,V> RawKeyValueIterator | merge(org.apache.hadoop.conf.Configuration conf,
     org.apache.hadoop.fs.FileSystem fs,
     Class<K> keyClass,
     Class<V> valueClass,
     List<Merger.Segment<K,V>> segments,
     int mergeFactor,
     org.apache.hadoop.fs.Path tmpDir,
     org.apache.hadoop.io.RawComparator<K> comparator,
     org.apache.hadoop.util.Progressable reporter,
     boolean sortSegments,
     Counters.Counter readsCounter,
     Counters.Counter writesCounter,
     org.apache.hadoop.util.Progress mergePhase) | 
| static <K,V> RawKeyValueIterator | merge(org.apache.hadoop.conf.Configuration conf,
     org.apache.hadoop.fs.FileSystem fs,
     Class<K> keyClass,
     Class<V> valueClass,
     List<Merger.Segment<K,V>> segments,
     int mergeFactor,
     org.apache.hadoop.fs.Path tmpDir,
     org.apache.hadoop.io.RawComparator<K> comparator,
     org.apache.hadoop.util.Progressable reporter,
     Counters.Counter readsCounter,
     Counters.Counter writesCounter,
     org.apache.hadoop.util.Progress mergePhase) | 
| static <K,V> void | writeFile(RawKeyValueIterator records,
         IFile.Writer<K,V> writer,
         org.apache.hadoop.util.Progressable progressable,
         org.apache.hadoop.conf.Configuration conf) | 
public static <K,V> RawKeyValueIterator merge(org.apache.hadoop.conf.Configuration conf, org.apache.hadoop.fs.FileSystem fs, Class<K> keyClass, Class<V> valueClass, org.apache.hadoop.io.compress.CompressionCodec codec, org.apache.hadoop.fs.Path[] inputs, boolean deleteInputs, int mergeFactor, org.apache.hadoop.fs.Path tmpDir, org.apache.hadoop.io.RawComparator<K> comparator, org.apache.hadoop.util.Progressable reporter, Counters.Counter readsCounter, Counters.Counter writesCounter, org.apache.hadoop.util.Progress mergePhase) throws IOException
IOExceptionpublic static <K,V> RawKeyValueIterator merge(org.apache.hadoop.conf.Configuration conf, org.apache.hadoop.fs.FileSystem fs, Class<K> keyClass, Class<V> valueClass, org.apache.hadoop.io.compress.CompressionCodec codec, org.apache.hadoop.fs.Path[] inputs, boolean deleteInputs, int mergeFactor, org.apache.hadoop.fs.Path tmpDir, org.apache.hadoop.io.RawComparator<K> comparator, org.apache.hadoop.util.Progressable reporter, Counters.Counter readsCounter, Counters.Counter writesCounter, Counters.Counter mergedMapOutputsCounter, org.apache.hadoop.util.Progress mergePhase) throws IOException
IOExceptionpublic static <K,V> RawKeyValueIterator merge(org.apache.hadoop.conf.Configuration conf, org.apache.hadoop.fs.FileSystem fs, Class<K> keyClass, Class<V> valueClass, List<Merger.Segment<K,V>> segments, int mergeFactor, org.apache.hadoop.fs.Path tmpDir, org.apache.hadoop.io.RawComparator<K> comparator, org.apache.hadoop.util.Progressable reporter, Counters.Counter readsCounter, Counters.Counter writesCounter, org.apache.hadoop.util.Progress mergePhase) throws IOException
IOExceptionpublic static <K,V> RawKeyValueIterator merge(org.apache.hadoop.conf.Configuration conf, org.apache.hadoop.fs.FileSystem fs, Class<K> keyClass, Class<V> valueClass, List<Merger.Segment<K,V>> segments, int mergeFactor, org.apache.hadoop.fs.Path tmpDir, org.apache.hadoop.io.RawComparator<K> comparator, org.apache.hadoop.util.Progressable reporter, boolean sortSegments, Counters.Counter readsCounter, Counters.Counter writesCounter, org.apache.hadoop.util.Progress mergePhase) throws IOException
IOExceptionpublic static <K,V> RawKeyValueIterator merge(org.apache.hadoop.conf.Configuration conf, org.apache.hadoop.fs.FileSystem fs, Class<K> keyClass, Class<V> valueClass, org.apache.hadoop.io.compress.CompressionCodec codec, List<Merger.Segment<K,V>> segments, int mergeFactor, org.apache.hadoop.fs.Path tmpDir, org.apache.hadoop.io.RawComparator<K> comparator, org.apache.hadoop.util.Progressable reporter, boolean sortSegments, Counters.Counter readsCounter, Counters.Counter writesCounter, org.apache.hadoop.util.Progress mergePhase, TaskType taskType) throws IOException
IOExceptionpublic static <K,V> RawKeyValueIterator merge(org.apache.hadoop.conf.Configuration conf, org.apache.hadoop.fs.FileSystem fs, Class<K> keyClass, Class<V> valueClass, List<Merger.Segment<K,V>> segments, int mergeFactor, int inMemSegments, org.apache.hadoop.fs.Path tmpDir, org.apache.hadoop.io.RawComparator<K> comparator, org.apache.hadoop.util.Progressable reporter, boolean sortSegments, Counters.Counter readsCounter, Counters.Counter writesCounter, org.apache.hadoop.util.Progress mergePhase) throws IOException
IOExceptionpublic static <K,V> RawKeyValueIterator merge(org.apache.hadoop.conf.Configuration conf, org.apache.hadoop.fs.FileSystem fs, Class<K> keyClass, Class<V> valueClass, org.apache.hadoop.io.compress.CompressionCodec codec, List<Merger.Segment<K,V>> segments, int mergeFactor, int inMemSegments, org.apache.hadoop.fs.Path tmpDir, org.apache.hadoop.io.RawComparator<K> comparator, org.apache.hadoop.util.Progressable reporter, boolean sortSegments, Counters.Counter readsCounter, Counters.Counter writesCounter, org.apache.hadoop.util.Progress mergePhase) throws IOException
IOExceptionpublic static <K,V> void writeFile(RawKeyValueIterator records, IFile.Writer<K,V> writer, org.apache.hadoop.util.Progressable progressable, org.apache.hadoop.conf.Configuration conf) throws IOException
IOExceptionCopyright © 2008–2018 Apache Software Foundation. All rights reserved.