[Git][java-team/libexternalsortinginjava-java][upstream] New upstream version 0.2.5

Andreas Tille gitlab at salsa.debian.org
Sat Jan 12 08:21:46 GMT 2019


Andreas Tille pushed to branch upstream at Debian Java Maintainers / libexternalsortinginjava-java


Commits:
73d6d6fc by Andreas Tille at 2019-01-12T07:58:55Z
New upstream version 0.2.5
- - - - -


3 changed files:

- .travis.yml
- pom.xml
- src/main/java/com/google/code/externalsorting/ExternalSort.java


Changes:

=====================================
.travis.yml
=====================================
@@ -1,6 +1,7 @@
 language: java
 
 jdk:
+  - oraclejdk9
   - oraclejdk8
 
 install: true


=====================================
pom.xml
=====================================
@@ -3,7 +3,7 @@
     <groupId>com.google.code.externalsortinginjava</groupId>
     <artifactId>externalsortinginjava</artifactId>
     <packaging>jar</packaging>
-    <version>0.2.4</version>
+    <version>0.2.5</version>
     <name>externalsortinginjava</name>
     <url>http://github.com/lemire/externalsortinginjava/</url>
     <description>Sometimes, you want to sort large file without first loading them into memory. The solution is to use External Sorting. You divide the files into small blocks, sort each block in RAM, and then merge the result.
@@ -198,6 +198,6 @@
         <connection>scm:git:git at github.com:lemire/externalsortinginjava.git</connection>
         <url>scm:git:git at github.com:lemire/externalsortinginjava.git</url>
         <developerConnection>scm:git:git at github.com:lemire/externalsortinginjava.git</developerConnection>
-        <tag>externalsortinginjava-0.2.4</tag>
+        <tag>externalsortinginjava-0.2.5</tag>
     </scm>
 </project>


=====================================
src/main/java/com/google/code/externalsorting/ExternalSort.java
=====================================
@@ -434,6 +434,23 @@ public class ExternalSort {
                         output);
         }
 
+        /**
+         * This sorts a file (input) to an output file (output) using customized comparator
+         *
+         * @param input source file
+         *
+         * @param output output file
+         *
+         * @param cmp The {@link Comparator} to use to compare
+         *                {@link String}s.
+         * @throws IOException generic IO exception
+         */
+        public static void sort(final File input, final File output, final Comparator<String> cmp)
+                throws IOException {
+                ExternalSort.mergeSortedFiles(ExternalSort.sortInBatch(input),
+                        output, cmp);
+        }
+
         /**
          * Sort a list and save it to a temporary file
          *



View it on GitLab: https://salsa.debian.org/java-team/libexternalsortinginjava-java/commit/73d6d6fc9bb62cc98d23b207e80b300872d51b1e

-- 
View it on GitLab: https://salsa.debian.org/java-team/libexternalsortinginjava-java/commit/73d6d6fc9bb62cc98d23b207e80b300872d51b1e
You're receiving this email because of your account on salsa.debian.org.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://alioth-lists.debian.net/pipermail/pkg-java-commits/attachments/20190112/cb2ef433/attachment.html>


More information about the pkg-java-commits mailing list