Package ru.yandex.clickhouse.util
Class ClickHouseLZ4OutputStream
- java.lang.Object
-
- java.io.OutputStream
-
- ru.yandex.clickhouse.util.ClickHouseLZ4OutputStream
-
- All Implemented Interfaces:
Closeable,Flushable,AutoCloseable
public class ClickHouseLZ4OutputStream extends OutputStream
-
-
Constructor Summary
Constructors Constructor Description ClickHouseLZ4OutputStream(OutputStream stream, int maxCompressBlockSize)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidflush()intposition()voidwrite(byte[] b, int off, int len)voidwrite(int b)-
Methods inherited from class java.io.OutputStream
close, nullOutputStream, write
-
-
-
-
Constructor Detail
-
ClickHouseLZ4OutputStream
public ClickHouseLZ4OutputStream(OutputStream stream, int maxCompressBlockSize)
-
-
Method Detail
-
position
public int position()
- Returns:
- Location of pointer in the byte buffer (bytes not yet flushed)
-
write
public void write(int b) throws IOException- Specified by:
writein classOutputStream- Throws:
IOException
-
write
public void write(byte[] b, int off, int len) throws IOException- Overrides:
writein classOutputStream- Throws:
IOException
-
flush
public void flush() throws IOException- Specified by:
flushin interfaceFlushable- Overrides:
flushin classOutputStream- Throws:
IOException
-
-