mirror of
https://github.com/nosqlbench/nosqlbench.git
synced 2025-02-25 18:55:28 -06:00
DO-NOT-MERGE: this needs some repairs first
This commit is contained in:
committed by
jeffbanks
parent
9518b622bf
commit
fa0afdd388
@@ -30,5 +30,6 @@ public enum Category {
|
||||
general,
|
||||
objects,
|
||||
periodic,
|
||||
experimental
|
||||
experimental,
|
||||
HOF
|
||||
}
|
||||
|
||||
@@ -55,6 +55,10 @@ import java.util.function.*;
|
||||
*/
|
||||
public class NBFunctionConverter {
|
||||
|
||||
public static LongToIntFunction adapt(LongFunction<Float> f, Float i1, LongToIntFunction i2) {
|
||||
return v -> f.apply(v).intValue();
|
||||
}
|
||||
|
||||
public static LongFunction<Object> adapt(DoubleToIntFunction f, LongFunction<Integer> i1, Object i2) {
|
||||
return f::applyAsInt;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user