Class RowBinaryFormatWriter

java.lang.Object
com.clickhouse.client.api.data_formats.RowBinaryFormatWriter

public class RowBinaryFormatWriter extends Object
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 Details

  • Method Details

    • setValue

      public void setValue(String column, Object value)
    • setValue

      public void setValue(int colIndex, Object value)
    • commitRow

      public void commitRow() throws IOException
      Throws:
      IOException
    • setByte

      public void setByte(String column, byte value)
    • setByte

      public void setByte(int colIndex, byte value)
    • setShort

      public void setShort(String column, short value)
    • setShort

      public void setShort(int colIndex, short value)
    • setInteger

      public void setInteger(String column, int value)
    • setInteger

      public void setInteger(int colIndex, int value)
    • setLong

      public void setLong(String column, long value)
    • setLong

      public void setLong(int colIndex, long value)
    • setString

      public void setString(String column, String value)
    • setString

      public void setString(int colIndex, String value)
    • setDate

      public void setDate(String column, LocalDate value)
    • setDate

      public void setDate(int colIndex, LocalDate value)
    • setDateTime

      public void setDateTime(String column, LocalDateTime value)
    • setDateTime

      public void setDateTime(int colIndex, LocalDateTime value)
    • setDateTime

      public void setDateTime(String column, ZonedDateTime value)
    • setDateTime

      public void setDateTime(int colIndex, ZonedDateTime value)
    • setList

      public void setList(String column, List<?> value)
    • setList

      public void setList(int colIndex, List<?> value)