public static void merge ( File mergeDir , List < File > sortedFiles , File mergedFile , Comparator < String > comparator ) { merge ( mergeDir , sortedFiles , mergedFile , comparator , MERGE_FACTOR ) ; }
Merge multiple files into a single file . Multi - pass approach where the merge factor controls how many passes that are required . This method uses the default merge factor for merging .