mirror of
https://github.com/nosqlbench/nosqlbench.git
synced 2025-02-25 18:55:28 -06:00
naming for clarity on converters
This commit is contained in:
@@ -37,7 +37,7 @@ import java.util.function.*;
|
||||
*
|
||||
* <em>To ensure coverage of function types, add to the VirtDataConversionsTest class.</em>
|
||||
*/
|
||||
public class AdaptFunctionsFlexibly {
|
||||
public class NBFunctionConverter {
|
||||
|
||||
public static LongUnaryOperator adapt(LongToDoubleFunction f, LongUnaryOperator placeholder) {
|
||||
return v -> (long) (f.applyAsDouble(v) % Long.MAX_VALUE);
|
||||
@@ -92,9 +92,9 @@ public class VirtDataConversions {
|
||||
Class<?>[] methodSignature = signature.toArray(new Class<?>[0]);
|
||||
|
||||
Method adapter = null;
|
||||
Class<?> hostclass = AdaptFunctionsFlexibly.class;
|
||||
Class<?> hostclass = NBFunctionConverter.class;
|
||||
try {
|
||||
adapter = AdaptFunctionsFlexibly.class.getMethod("adapt", methodSignature);
|
||||
adapter = NBFunctionConverter.class.getMethod("adapt", methodSignature);
|
||||
} catch (NoSuchMethodException e) {
|
||||
StringBuilder example = new StringBuilder();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user