- The metadata file should contain information about the size of the different columns (in bytes).
- The data type for all columns should be a string.
- The number of columns can range from 1 to 20.
- Both ascending and descending sorts are possible.
- The program can run for different values of main memory usage allowed and the different size of files (MBs-GBs).
python3 externalMergeSort.py input.txt output.txt 50 asc C1 C2
python3 externalMergeSort.py input.txt output.txt 100 5 desc C3 C1
It should contain the records with the column values. All the values should be string only and might contain space or “,”.
- Input file name (containing the raw records)
- Output filename (containing sorted records)
- Main memory size (in MB)
- Number of threads (optional)
- Order code (asc / desc) asc : ascending, desc : descending
- ColumnName K1
- ColumnName K2
- .....