This repository contains Java code that will merge list of sorted input files into a single output file.
This code is specifically useful when you are trying to sort millions of records and distributed over several small files.
Example data directory contains input files that has sorted words with its frequency. This code will read files from data directory and combine it to output.txt that has all the words from all the input files sorted and their frequency summed.
You can use the code from this repository for any other kind of sorting and merging.