Package com.clickhouse.data
Class ClickHousePipedOutputStream
java.lang.Object
java.io.OutputStream
com.clickhouse.data.ClickHouseOutputStream
com.clickhouse.data.ClickHousePipedOutputStream
- All Implemented Interfaces:
Closeable,Flushable,AutoCloseable
SPSC(Single-producer single-consumer) channel for streaming.
-
Field Summary
Fields inherited from class com.clickhouse.data.ClickHouseOutputStream
closed, DEFAULT_BUFFER_SIZE, ERROR_INCOMPLETE_READ, ERROR_NULL_BYTES, ERROR_REUSE_BUFFER, ERROR_STREAM_CLOSED, postCloseAction, stream, TYPE_NAME -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal ClickHouseInputStreamGets input stream to reada data being written into the output stream.abstract ClickHouseInputStreamgetInputStream(Runnable postCloseAction) Gets input stream to reada data being written into the output stream.Methods inherited from class com.clickhouse.data.ClickHouseOutputStream
close, empty, ensureOpen, getUnderlyingFile, getUnderlyingStream, isClosed, of, of, of, of, of, transferBytes, transferBytes, transferBytes, write, write, write, writeAsciiString, writeBoolean, writeBuffer, writeByte, writeBytes, writeBytes, writeBytes, writeCustom, writeString, writeUnicodeString, writeUnsignedVarInt, writeVarIntMethods inherited from class java.io.OutputStream
flush, nullOutputStream
-
Constructor Details
-
ClickHousePipedOutputStream
-
-
Method Details
-
getInputStream
Gets input stream to reada data being written into the output stream.- Returns:
- non-null input stream
-
getInputStream
Gets input stream to reada data being written into the output stream.- Parameters:
postCloseAction- custom action will be performed right after closing the input stream- Returns:
- non-null input stream
-