Interface ClickHouseBinaryFormatWriter

All Known Implementing Classes:
RowBinaryFormatWriter

public interface ClickHouseBinaryFormatWriter
Experimental API
  • Method Details

    • getOutputStream

      OutputStream getOutputStream()
      Returns an output stream to which this writer is serializing values. Caution: this method is not intended for application usage.
      Returns:
      Output stream of the writer
    • getRowCount

      int getRowCount()
    • getFormat

      ClickHouseFormat getFormat()
    • clearRow

      void clearRow()
    • setValue

      void setValue(String column, Object value)
    • setValue

      void setValue(int colIndex, Object value)
    • commitRow

      void commitRow() throws IOException
      Writer current row or block to the output stream. Action is idempotent: if there are no new values set - this method has no effect.
      Throws:
      IOException - if writing to an output stream causes an error
    • setByte

      void setByte(String column, byte value)
    • setByte

      void setByte(int colIndex, byte value)
    • setShort

      void setShort(String column, short value)
    • setShort

      void setShort(int colIndex, short value)
    • setInteger

      void setInteger(String column, int value)
    • setInteger

      void setInteger(int colIndex, int value)
    • setLong

      void setLong(String column, long value)
    • setLong

      void setLong(int colIndex, long value)
    • setBigInteger

      void setBigInteger(int colIndex, BigInteger value)
    • setBigInteger

      void setBigInteger(String column, BigInteger value)
    • setFloat

      void setFloat(int colIndex, float value)
    • setFloat

      void setFloat(String column, float value)
    • setDouble

      void setDouble(int colIndex, double value)
    • setDouble

      void setDouble(String column, double value)
    • setBigDecimal

      void setBigDecimal(int colIndex, BigDecimal value)
    • setBigDecimal

      void setBigDecimal(String column, BigDecimal value)
    • setBoolean

      void setBoolean(int colIndex, boolean value)
    • setBoolean

      void setBoolean(String column, boolean value)
    • setString

      void setString(String column, String value)
    • setString

      void setString(int colIndex, String value)
    • setDate

      void setDate(String column, LocalDate value)
    • setDate

      void setDate(int colIndex, LocalDate value)
    • setDateTime

      void setDateTime(String column, LocalDateTime value)
    • setDateTime

      void setDateTime(int colIndex, LocalDateTime value)
    • setDateTime

      void setDateTime(String column, ZonedDateTime value)
    • setDateTime

      void setDateTime(int colIndex, ZonedDateTime value)
    • setList

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

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

      void setInputStream(int colIndex, InputStream in, long len)
    • setInputStream

      void setInputStream(String column, InputStream in, long len)
    • setReader

      void setReader(int colIndex, Reader reader, long len)
    • setReader

      void setReader(String column, Reader reader, long len)