Package com.clickhouse.client.stream
Class IterableByteArrayInputStream
- java.lang.Object
-
- java.io.InputStream
-
- com.clickhouse.client.ClickHouseInputStream
-
- com.clickhouse.client.stream.AbstractByteArrayInputStream
-
- com.clickhouse.client.stream.IterableByteArrayInputStream
-
- All Implemented Interfaces:
Closeable,AutoCloseable
public class IterableByteArrayInputStream extends AbstractByteArrayInputStream
-
-
Field Summary
-
Fields inherited from class com.clickhouse.client.stream.AbstractByteArrayInputStream
buffer, limit, position
-
Fields inherited from class com.clickhouse.client.ClickHouseInputStream
byteBuffer, closed, copyTo, EMPTY_BUFFER, EMPTY_BYTES, ERROR_INCOMPLETE_READ, ERROR_NULL_BYTES, ERROR_REUSE_BUFFER, ERROR_STREAM_CLOSED, file, postCloseAction
-
-
Constructor Summary
Constructors Constructor Description IterableByteArrayInputStream(Iterable<byte[]> source, Runnable postCloseAction)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected intupdateBuffer()Update inner byte array along withpositionandlimitas needed.-
Methods inherited from class com.clickhouse.client.stream.AbstractByteArrayInputStream
available, close, ensureOpen, peek, pipe, read, read, readBuffer, readByte, readBytes, readCustom, skip
-
Methods inherited from class com.clickhouse.client.ClickHouseInputStream
closeQuietly, empty, getUnderlyingFile, isClosed, of, of, of, of, of, of, of, of, of, of, of, of, of, of, of, of, pipe, pipe, readAsciiString, readAsciiString, readString, readString, readUnicodeString, readUnicodeString, readUnsignedByte, readVarInt, readVarLong, save, save, setCopyToTarget, wrap
-
Methods inherited from class java.io.InputStream
mark, markSupported, nullInputStream, read, readAllBytes, readNBytes, readNBytes, reset, transferTo
-
-
-
-
Method Detail
-
updateBuffer
protected int updateBuffer() throws IOExceptionDescription copied from class:AbstractByteArrayInputStreamUpdate inner byte array along withpositionandlimitas needed.- Specified by:
updateBufferin classAbstractByteArrayInputStream- Returns:
- remaining bytes in buffer
- Throws:
IOException- when failed to read value
-
-