Package com.semedy.reasoner.edb.zdb
Class ExternalSortTuples
java.lang.Object
com.semedy.reasoner.edb.zdb.ExternalSortTuples
file merge sort of binary tuples of text lines
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic long
static void
merge
(List<File> files, ExternalSortConsumer consumer, boolean deleteinputfiles, boolean compressed) sort
(File file, Comparator<String> cmp, File tempdir, long freemem) static File
-
Constructor Details
-
ExternalSortTuples
public ExternalSortTuples()
-
-
Method Details
-
guessSize
public static long guessSize() -
sort
public static List<File> sort(File file, Comparator<String> cmp, File tempdir, long freemem) throws IOException - Throws:
IOException
-
store
- Throws:
IOException
-
merge
public static void merge(List<File> files, ExternalSortConsumer consumer, boolean deleteinputfiles, boolean compressed) throws IOException, InterruptedException, SemReasonerException
-