Package org.apache.parquet.hadoop.codec
Class ZstdCompressorStream
- java.lang.Object
-
- java.io.OutputStream
-
- org.apache.hadoop.io.compress.CompressionOutputStream
-
- org.apache.parquet.hadoop.codec.ZstdCompressorStream
-
- All Implemented Interfaces:
Closeable,Flushable,AutoCloseable
public class ZstdCompressorStream extends org.apache.hadoop.io.compress.CompressionOutputStream
-
-
Constructor Summary
Constructors Constructor Description ZstdCompressorStream(OutputStream stream, int level, int workers)ZstdCompressorStream(OutputStream stream, com.github.luben.zstd.BufferPool pool, int level, int workers)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclose()voidfinish()voidflush()voidresetState()voidwrite(byte[] b, int off, int len)voidwrite(int b)-
Methods inherited from class java.io.OutputStream
nullOutputStream, write
-
-
-
-
Constructor Detail
-
ZstdCompressorStream
public ZstdCompressorStream(OutputStream stream, int level, int workers) throws IOException
- Throws:
IOException
-
ZstdCompressorStream
public ZstdCompressorStream(OutputStream stream, com.github.luben.zstd.BufferPool pool, int level, int workers) throws IOException
- Throws:
IOException
-
-
Method Detail
-
write
public void write(byte[] b, int off, int len) throws IOException- Specified by:
writein classorg.apache.hadoop.io.compress.CompressionOutputStream- Throws:
IOException
-
write
public void write(int b) throws IOException- Specified by:
writein classOutputStream- Throws:
IOException
-
finish
public void finish() throws IOException- Specified by:
finishin classorg.apache.hadoop.io.compress.CompressionOutputStream- Throws:
IOException
-
resetState
public void resetState() throws IOException- Specified by:
resetStatein classorg.apache.hadoop.io.compress.CompressionOutputStream- Throws:
IOException
-
flush
public void flush() throws IOException- Specified by:
flushin interfaceFlushable- Overrides:
flushin classorg.apache.hadoop.io.compress.CompressionOutputStream- Throws:
IOException
-
close
public void close() throws IOException- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Overrides:
closein classorg.apache.hadoop.io.compress.CompressionOutputStream- Throws:
IOException
-
-