mirror of
https://github.com/nosqlbench/nosqlbench.git
synced 2025-02-25 18:55:28 -06:00
additional function conversions
This commit is contained in:
@@ -55,6 +55,10 @@ import java.util.function.*;
|
||||
*/
|
||||
public class NBFunctionConverter {
|
||||
|
||||
public static LongFunction<Object> adapt(DoubleToIntFunction f, LongFunction<Integer> i1, Object i2) {
|
||||
return f::applyAsInt;
|
||||
}
|
||||
|
||||
public static LongUnaryOperator adapt(LongToDoubleFunction f, LongUnaryOperator placeholder) {
|
||||
return v -> (long) (f.applyAsDouble(v) % Long.MAX_VALUE);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user