Package org.apache.flink.runtime.state
Class CompressibleFSDataOutputStream
- java.lang.Object
-
- java.io.OutputStream
-
- org.apache.flink.core.fs.FSDataOutputStream
-
- org.apache.flink.runtime.state.CompressibleFSDataOutputStream
-
- All Implemented Interfaces:
Closeable,Flushable,AutoCloseable
public class CompressibleFSDataOutputStream extends org.apache.flink.core.fs.FSDataOutputStreamFSDataOutputStreamthat delegates all writing operations to a wrappingStreamCompressionDecorator.
-
-
Constructor Summary
Constructors Constructor Description CompressibleFSDataOutputStream(org.apache.flink.core.fs.FSDataOutputStream delegate, StreamCompressionDecorator compressionDecorator)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclose()voidflush()longgetPos()voidsync()voidwrite(int b)-
Methods inherited from class java.io.OutputStream
nullOutputStream, write, write
-
-
-
-
Constructor Detail
-
CompressibleFSDataOutputStream
public CompressibleFSDataOutputStream(org.apache.flink.core.fs.FSDataOutputStream delegate, StreamCompressionDecorator compressionDecorator) throws IOException- Throws:
IOException
-
-
Method Detail
-
getPos
public long getPos() throws IOException- Specified by:
getPosin classorg.apache.flink.core.fs.FSDataOutputStream- Throws:
IOException
-
write
public void write(int b) throws IOException- Specified by:
writein classOutputStream- Throws:
IOException
-
flush
public void flush() throws IOException- Specified by:
flushin interfaceFlushable- Specified by:
flushin classorg.apache.flink.core.fs.FSDataOutputStream- Throws:
IOException
-
sync
public void sync() throws IOException- Specified by:
syncin classorg.apache.flink.core.fs.FSDataOutputStream- Throws:
IOException
-
close
public void close() throws IOException- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Specified by:
closein classorg.apache.flink.core.fs.FSDataOutputStream- Throws:
IOException
-
-