mirror of
https://github.com/nosqlbench/nosqlbench.git
synced 2025-02-25 18:55:28 -06:00
deprecate duplicate function ByteBufferToHex for ToHex
This commit is contained in:
@@ -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
|
||||
Reference in New Issue
Block a user