Package com.firebolt.jdbc.type.array
Class SqlArrayUtil
java.lang.Object
com.firebolt.jdbc.type.array.SqlArrayUtil
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionstatic Stringstatic StringbyteArrayToHexString(byte[] bytes, boolean separateEachByte) Creates string representation of given byte array as a sequence of hexadecimal 2 character digits prepended by special marker\x.static byte[]static FireboltArraytransformToSqlArray(String value, ColumnType columnType)
-
Field Details
-
BYTEA_PREFIX
- See Also:
-
BYTEA_IN_ARRAY_PREFIX
- See Also:
-
-
Method Details
-
transformToSqlArray
public static FireboltArray transformToSqlArray(String value, ColumnType columnType) throws SQLException - Throws:
SQLException
-
arrayToString
- Throws:
SQLException
-
byteArrayToHexString
Creates string representation of given byte array as a sequence of hexadecimal 2 character digits prepended by special marker\x. The same marker can be optionally used as a separator between hexadecimal digits depending on value ofseparateEachByte.- Parameters:
bytes- - the given byte arrayseparateEachByte- - flag that controls separator between hexadecimal digits in the resulting string- Returns:
- hexadecimal representation of given array
-
hexStringToByteArray
- Throws:
SQLException
-