Class SqlArrayUtil

java.lang.Object
com.firebolt.jdbc.type.array.SqlArrayUtil

public class SqlArrayUtil extends Object
  • Field Details

  • Method Details

    • transformToSqlArray

      public static FireboltArray transformToSqlArray(String value, ColumnType columnType) throws SQLException
      Throws:
      SQLException
    • arrayToString

      public static String arrayToString(Object o) throws SQLException
      Throws:
      SQLException
    • byteArrayToHexString

      public static String byteArrayToHexString(@Nullable byte[] bytes, boolean separateEachByte)
      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 of separateEachByte.
      Parameters:
      bytes - - the given byte array
      separateEachByte - - flag that controls separator between hexadecimal digits in the resulting string
      Returns:
      hexadecimal representation of given array
    • hexStringToByteArray

      public static byte[] hexStringToByteArray(String str)