Package ru.yandex.clickhouse.util
Class ClickHouseArrayUtil
- java.lang.Object
-
- ru.yandex.clickhouse.util.ClickHouseArrayUtil
-
public class ClickHouseArrayUtil extends Object
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static StringarrayToString(Object object, TimeZone dateTimeZone, TimeZone dateTimeTimeZone)static intgetArrayLength(ByteFragment value)static ObjectparseArray(ByteFragment value, boolean useObjects, TimeZone timeZone, int arrayLevel, Class<?> elementClass, ClickHouseColumnInfo columnInfo)static ObjectparseArray(ByteFragment value, boolean useObjects, TimeZone timeZone, ClickHouseColumnInfo columnInfo)static StringtoString(Object[] values, TimeZone dateTimeZone, TimeZone dateTimeTimeZone)static StringtoString(Collection<?> collection, TimeZone dateTimeZone, TimeZone dateTimeTimeZone)
-
-
-
Method Detail
-
arrayToString
public static String arrayToString(Object object, TimeZone dateTimeZone, TimeZone dateTimeTimeZone)
- Parameters:
object- the object to convert to ClickHouse-string representationdateTimeZone- TimeZone to use when formatting date valuesdateTimeTimeZone- TimeZone to use when formatting datetime values- Returns:
- string representation of an object
-
toString
public static String toString(Object[] values, TimeZone dateTimeZone, TimeZone dateTimeTimeZone)
-
toString
public static String toString(Collection<?> collection, TimeZone dateTimeZone, TimeZone dateTimeTimeZone)
-
parseArray
public static Object parseArray(ByteFragment value, boolean useObjects, TimeZone timeZone, int arrayLevel, Class<?> elementClass, ClickHouseColumnInfo columnInfo) throws SQLException
- Throws:
SQLException
-
getArrayLength
public static int getArrayLength(ByteFragment value)
-
parseArray
public static Object parseArray(ByteFragment value, boolean useObjects, TimeZone timeZone, ClickHouseColumnInfo columnInfo) throws SQLException
- Throws:
SQLException
-
-