Package com.clickhouse.client
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 inClickHouseInputStream.readCustom(ClickHouseDataUpdater)andClickHouseOutputStream.writeCustom(ClickHouseDataUpdater).
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description intupdate(byte[] bytes, int position, int limit)Byte array(frompositiontolimit) to update, usually read or write.
-
-
-
Method Detail
-
update
int update(byte[] bytes, int position, int limit) throws IOExceptionByte array(frompositiontolimit) to update, usually read or write.- Parameters:
bytes- non-null byte array to updateposition- zero-based index indicating start position of the byte arraylimit- zero-based index indicating end position of the byte array, it should always greater than or equal toposition- Returns:
- negative number, usually -1, indicates to more to update, or other number for bytes being updated
- Throws:
IOException- when it failed to update
-
-