Package org.apache.flink.runtime.state
Class CompressibleFSDataInputStream
- java.lang.Object
-
- java.io.InputStream
-
- org.apache.flink.core.fs.FSDataInputStream
-
- org.apache.flink.runtime.state.CompressibleFSDataInputStream
-
- All Implemented Interfaces:
Closeable
,AutoCloseable
public class CompressibleFSDataInputStream extends org.apache.flink.core.fs.FSDataInputStream
FSDataInputStream
that delegates all reading operations to a wrappingStreamCompressionDecorator
.
-
-
Constructor Summary
Constructors Constructor Description CompressibleFSDataInputStream(org.apache.flink.core.fs.FSDataInputStream delegate, StreamCompressionDecorator compressionDecorator)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
close()
long
getPos()
int
read()
void
seek(long desired)
-
Methods inherited from class java.io.InputStream
available, mark, markSupported, nullInputStream, read, read, readAllBytes, readNBytes, readNBytes, reset, skip, transferTo
-
-
-
-
Constructor Detail
-
CompressibleFSDataInputStream
public CompressibleFSDataInputStream(org.apache.flink.core.fs.FSDataInputStream delegate, StreamCompressionDecorator compressionDecorator) throws IOException
- Throws:
IOException
-
-
Method Detail
-
seek
public void seek(long desired) throws IOException
- Specified by:
seek
in classorg.apache.flink.core.fs.FSDataInputStream
- Throws:
IOException
-
getPos
public long getPos() throws IOException
- Specified by:
getPos
in classorg.apache.flink.core.fs.FSDataInputStream
- Throws:
IOException
-
read
public int read() throws IOException
- Specified by:
read
in classInputStream
- Throws:
IOException
-
close
public void close() throws IOException
- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceCloseable
- Overrides:
close
in classInputStream
- Throws:
IOException
-
-