deprecate duplicate function ByteBufferToHex for ToHex

This commit is contained in:
Jonathan Shook
2021-04-21 11:43:57 -05:00
parent 3bd6a80afc
commit ac19e86a6a

View File

@@ -1,7 +1,8 @@
package io.nosqlbench.virtdata.library.basics.shared.from_long.to_bytebuffer;
package io.nosqlbench.virtdata.library.basics.shared.conversions.from_bytebuffer;
import io.nosqlbench.virtdata.api.annotations.Categories;
import io.nosqlbench.virtdata.api.annotations.Category;
import io.nosqlbench.virtdata.api.annotations.DeprecatedFunction;
import io.nosqlbench.virtdata.api.annotations.ThreadSafeMapper;
import org.apache.commons.codec.binary.Hex;
@@ -10,8 +11,11 @@ import java.util.function.Function;
/**
* Convert the contents of the input ByteBuffer to a String as hexadecimal.
* This function is retained to avoid breaking previous workload definitions,
* but you should use {@link ToHexString} instead.
*/
@ThreadSafeMapper
@DeprecatedFunction("Use ToHexString(...) instead.")
@Categories(Category.conversion)
public class ByteBufferToHex implements Function<ByteBuffer,String> {
@Override