Interface ClickHouseDataUpdater

Functional Interface:
This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

@FunctionalInterface public interface ClickHouseDataUpdater
This class defines custom reading/writing logic, which can be used in ClickHouseInputStream.readCustom(ClickHouseDataUpdater) and ClickHouseOutputStream.writeCustom(ClickHouseDataUpdater).
  • Method Summary

    Modifier and Type
    Method
    Description
    int
    update(byte[] bytes, int position, int limit)
    Byte array(from position to limit) to update, usually read or write.
  • Method Details

    • update

      int update(byte[] bytes, int position, int limit) throws IOException
      Byte array(from position to limit) to update, usually read or write.
      Parameters:
      bytes - non-null byte array to update
      position - zero-based index indicating start position of the byte array
      limit - zero-based index indicating end position of the byte array, it should always greater than or equal to position
      Returns:
      negative number, usually -1, indicates to more to update, or other number for bytes being updated
      Throws:
      IOException - when it failed to update