jOOQ / jOOL

jOOλ - The Missing Parts in Java 8 jOOλ improves the JDK libraries in areas where the Expert Group's focus was elsewhere. It adds tuple support, function support, and a lot of additional functionality around sequential Streams. The JDK 8's main efforts (default methods, lambdas, and the Stream API) were focused around maintaining backwards compatibility and implementing a functional API for parallelism.
http://www.jooq.org/products
Apache License 2.0
2.09k stars 168 forks source link

#221 Add percentileAll and medianAll #385

Closed JingHuaMan closed 3 years ago

JingHuaMan commented 3 years ago

221

Unlike percentileBy and medianBy, the function percentileAllBy and medianAllBy will retrieve all the values of the specific percentile.

The order of the output elements is the same as the order of those elements in the input Seq.

I add a lot of test cases for the two functions, and all the previous and new tests are passed.

Though there is already unsubmitted commits related to issue #221 in May 2020, it seems that there were some bugs with his codes.

lukaseder commented 3 years ago

Thanks again for your contribution. Note that if you plan on making more contributions, it will be sufficient to provide an implementation for the jool module only, the jool-java-8 module is created automatically using scripts that aren't on this github repository.

lukaseder commented 3 years ago

Additional changes here: https://github.com/jOOQ/jOOL/commit/d41bd549ebad07efc1010b841e037a493796c689

lukaseder commented 3 years ago

And here: https://github.com/jOOQ/jOOL/commit/1bdd69b2fd6f24fe193fbb53076cad0f33123108

lukaseder commented 3 years ago

PS: Feel free to add yourself as @author to the Agg class