public class TraceSorter
extends java.lang.Object
Constructor and Description |
---|
TraceSorter() |
Modifier and Type | Method and Description |
---|---|
static void |
main(java.lang.String[] args)
for testing only
|
static long |
mergeSort(java.util.List<java.io.File> segments,
java.io.File dst)
Merges all files given in the map and writes the result to dst.
|
static void |
sort(java.io.File file)
sorts file in place
|
static void |
sort(java.io.File src,
java.io.File dst)
sorts file src and writes sorted values to dst
|
static long |
sortAndMergeSort(java.util.List<java.io.File> segments,
java.io.File dst)
Merges all files given in the map and writes the result to dst.
|
public static void sort(java.io.File file) throws TraceFilesInvalidException
file
- the data fileTraceFilesInvalidException
- if the file cannot be readpublic static void sort(java.io.File src, java.io.File dst) throws TraceFilesInvalidException
src
- source filedst
- destination fileTraceFilesInvalidException
- if the file cannot be readpublic static long sortAndMergeSort(java.util.List<java.io.File> segments, java.io.File dst) throws TraceFilesInvalidException
segments
- map with files and the number of samples in each filedst
- destination fileTraceFilesInvalidException
- if the file cannot be readpublic static long mergeSort(java.util.List<java.io.File> segments, java.io.File dst) throws TraceFilesInvalidException
segments
- map with files and the number of samples in each filedst
- destination fileTraceFilesInvalidException
- if the file cannot be readpublic static void main(java.lang.String[] args) throws TraceFilesInvalidException, java.io.IOException
TraceFilesInvalidException
java.io.IOException