public final class ClickHouseValueFormatter extends Object
| Modifier and Type | Field and Description |
|---|---|
static String |
NULL_MARKER |
public static final String NULL_MARKER
public static String formatBytes(byte[] bytes)
public static String formatInt(int myInt)
public static String formatDouble(double myDouble)
public static String formatChar(char myChar)
public static String formatLong(long myLong)
public static String formatFloat(float myFloat)
public static String formatBigDecimal(BigDecimal myBigDecimal)
public static String formatShort(short myShort)
public static String formatNull()
public static String formatByte(byte myByte)
public static String formatBoolean(boolean myBoolean)
public static String formatBigInteger(BigInteger x)
public static String formatLocalDateTime(LocalDateTime x)
public static String formatLocalTime(LocalTime x)
LocalTime as "HH:mm:ss". There isn't any
dedicated ClickHouse data type for times, so this is the most
straightforward thing to do. It would be wrong for the JDBC driver to
construct an artificial DateTime
representation using a dummy date, e.g. 1970-01-01.x - a LocalTime parameterx formatted as "HH:mm:ss"public static String formatOffsetTime(OffsetTime x)
public static String formatOffsetDateTime(OffsetDateTime x, TimeZone timeZone)
public static String formatZonedDateTime(ZonedDateTime x, TimeZone timeZone)
public static String formatBitmap(ClickHouseBitmap bitmap)
public static String formatMap(Map<?,?> map, TimeZone dateTimeZone, TimeZone dateTimeTimeZone)
public static String formatObject(Object x, TimeZone dateTimeZone, TimeZone dateTimeTimeZone)
public static boolean needsQuoting(Object o)
Copyright © 2015–2021 ClickHouse. All rights reserved.