Class FsSegmentDataInputStream
java.lang.Object
java.io.InputStream
org.apache.flink.core.fs.FSDataInputStream
org.apache.flink.core.fs.FSDataInputStreamWrapper
org.apache.flink.runtime.state.filesystem.FsSegmentDataInputStream
- All Implemented Interfaces:
Closeable,AutoCloseable,org.apache.flink.core.fs.WrappingProxyCloseable<org.apache.flink.core.fs.FSDataInputStream>,org.apache.flink.util.WrappingProxy<org.apache.flink.core.fs.FSDataInputStream>
public class FsSegmentDataInputStream
extends org.apache.flink.core.fs.FSDataInputStreamWrapper
implements org.apache.flink.core.fs.WrappingProxyCloseable<org.apache.flink.core.fs.FSDataInputStream>
This class is a
WrappingProxy for FSDataInputStream that is
used to read from a file segment. It is opened with a starting position of the file. It treats
the argument of seek(long) as an offset relative to the starting position, rather than an
absolute value.-
Field Summary
Fields inherited from class org.apache.flink.core.fs.FSDataInputStreamWrapper
inputStream -
Constructor Summary
ConstructorsConstructorDescriptionFsSegmentDataInputStream(org.apache.flink.core.fs.FSDataInputStream inputStream, long startingPosition, long segmentSize) -
Method Summary
Methods inherited from class org.apache.flink.core.fs.FSDataInputStreamWrapper
available, close, getWrappedDelegateMethods inherited from class java.io.InputStream
nullInputStream, readAllBytes, readNBytes, readNBytes, transferToMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.apache.flink.util.WrappingProxy
getWrappedDelegate
-
Constructor Details
-
FsSegmentDataInputStream
public FsSegmentDataInputStream(org.apache.flink.core.fs.FSDataInputStream inputStream, long startingPosition, long segmentSize) throws IOException - Throws:
IOException
-
-
Method Details
-
read
- Overrides:
readin classorg.apache.flink.core.fs.FSDataInputStreamWrapper- Throws:
IOException
-
read
- Overrides:
readin classorg.apache.flink.core.fs.FSDataInputStreamWrapper- Throws:
IOException
-
read
- Overrides:
readin classorg.apache.flink.core.fs.FSDataInputStreamWrapper- Throws:
IOException
-
seek
- Overrides:
seekin classorg.apache.flink.core.fs.FSDataInputStreamWrapper- Throws:
IOException
-
getPos
- Overrides:
getPosin classorg.apache.flink.core.fs.FSDataInputStreamWrapper- Throws:
IOException
-
skip
- Overrides:
skipin classorg.apache.flink.core.fs.FSDataInputStreamWrapper- Throws:
IOException
-
mark
public void mark(int readlimit) - Overrides:
markin classorg.apache.flink.core.fs.FSDataInputStreamWrapper
-
reset
- Overrides:
resetin classorg.apache.flink.core.fs.FSDataInputStreamWrapper- Throws:
IOException
-
markSupported
public boolean markSupported()- Overrides:
markSupportedin classorg.apache.flink.core.fs.FSDataInputStreamWrapper
-