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.FSDataOutputStream
FSDataOutputStream
that 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 void
close()
void
flush()
long
getPos()
void
sync()
void
write(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:
getPos
in classorg.apache.flink.core.fs.FSDataOutputStream
- Throws:
IOException
-
write
public void write(int b) throws IOException
- Specified by:
write
in classOutputStream
- Throws:
IOException
-
flush
public void flush() throws IOException
- Specified by:
flush
in interfaceFlushable
- Specified by:
flush
in classorg.apache.flink.core.fs.FSDataOutputStream
- Throws:
IOException
-
sync
public void sync() throws IOException
- Specified by:
sync
in classorg.apache.flink.core.fs.FSDataOutputStream
- Throws:
IOException
-
close
public void close() throws IOException
- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceCloseable
- Specified by:
close
in classorg.apache.flink.core.fs.FSDataOutputStream
- Throws:
IOException
-
-