Package org.apache.pinot.spi.utils
Class BytesUtils
- java.lang.Object
-
- org.apache.pinot.spi.utils.BytesUtils
-
public class BytesUtils extends Object
-
-
Method Summary
Modifier and Type Method Description static ByteArraytoByteArray(String stringValue)Converts a Hex encoded string to aByteArray.static byte[]toBytes(String stringValue)Converts a Hex encoded string to a byte array.static StringtoHexString(byte[] bytes)Converts the byte array to a Hex encoded string.
-
-
-
Method Detail
-
toBytes
public static byte[] toBytes(String stringValue)
Converts a Hex encoded string to a byte array.- Parameters:
stringValue- Hex encoded string- Returns:
- Decoded byte array
-
toByteArray
public static ByteArray toByteArray(String stringValue)
Converts a Hex encoded string to aByteArray.- Parameters:
stringValue- Hex encoded string- Returns:
- Decoded
ByteArray
-
toHexString
public static String toHexString(byte[] bytes)
Converts the byte array to a Hex encoded string.- Parameters:
bytes- byte array- Returns:
- Hex encoded string
-
-