Class RowBinaryFormatWriter
java.lang.Object
com.clickhouse.client.api.data_formats.RowBinaryFormatWriter
This class is intended to help writing data in row binary format.
It handles Nullable and Defaults.
It implements record and commit approach row-by-row. It means that data is not written immediately but it is stored
until
commitRow() is called.
Experimental API
-
Constructor Summary
ConstructorsConstructorDescriptionRowBinaryFormatWriter(OutputStream out, TableSchema tableSchema, ClickHouseFormat format) -
Method Summary
Modifier and TypeMethodDescriptionvoidvoidsetByte(int colIndex, byte value) voidvoidvoidvoidsetDateTime(int colIndex, LocalDateTime value) voidsetDateTime(int colIndex, ZonedDateTime value) voidsetDateTime(String column, LocalDateTime value) voidsetDateTime(String column, ZonedDateTime value) voidsetInteger(int colIndex, int value) voidsetInteger(String column, int value) voidvoidvoidsetLong(int colIndex, long value) voidvoidsetShort(int colIndex, short value) voidvoidvoidvoidvoid
-
Constructor Details
-
RowBinaryFormatWriter
-
-
Method Details
-
setValue
-
setValue
-
commitRow
- Throws:
IOException
-
setByte
-
setByte
public void setByte(int colIndex, byte value) -
setShort
-
setShort
public void setShort(int colIndex, short value) -
setInteger
-
setInteger
public void setInteger(int colIndex, int value) -
setLong
-
setLong
public void setLong(int colIndex, long value) -
setString
-
setString
-
setDate
-
setDate
-
setDateTime
-
setDateTime
-
setDateTime
-
setDateTime
-
setList
-
setList
-