예제 #1
0
 private SequenceFile.Sorter NewSorter(FileSystem fs, bool fast, int megabytes, int
                                       factor)
 {
     SequenceFile.Sorter sorter = fast ? new SequenceFile.Sorter(fs, new RandomDatum.Comparator
                                                                     (), typeof(RandomDatum), typeof(RandomDatum), conf) : new SequenceFile.Sorter(fs
                                                                                                                                                   , typeof(RandomDatum), typeof(RandomDatum), conf);
     sorter.SetMemory(megabytes * 1024 * 1024);
     sorter.SetFactor(factor);
     return(sorter);
 }