Package com.clickhouse.data
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.
This class defines custom reading/writing logic, which can be used in
ClickHouseInputStream.readCustom(ClickHouseDataUpdater) and
ClickHouseOutputStream.writeCustom(ClickHouseDataUpdater).-
Method Summary
Modifier and TypeMethodDescriptionintupdate(byte[] bytes, int position, int limit) Byte array(frompositiontolimit) to update, usually read or write.
-
Method Details
-
update
Byte 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
-