Package com.semedy.reasoner.edb.zdb
Class ExternalSortRawTuples
java.lang.Object
com.semedy.reasoner.edb.zdb.ExternalSortRawTuples
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) static void
mergeBytesZipped
(List<File> files, ExternalSortConsumer consumer, boolean deleteinputfiles, boolean compressed) static void
mergeZipped
(List<File> files, ExternalSortConsumer consumer, boolean deleteinputfiles, boolean compressed) sort
(File file, Comparator<String> cmp, File tempdir, long freemem) static File
-
Constructor Details
-
ExternalSortRawTuples
public ExternalSortRawTuples()
-
-
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 -
mergeZipped
public static void mergeZipped(List<File> files, ExternalSortConsumer consumer, boolean deleteinputfiles, boolean compressed) throws IOException, InterruptedException, SemReasonerException -
mergeBytesZipped
public static void mergeBytesZipped(List<File> files, ExternalSortConsumer consumer, boolean deleteinputfiles, boolean compressed) throws IOException, InterruptedException, SemReasonerException
-