public class FsSegmentDataInputStream
extends org.apache.flink.core.fs.FSDataInputStreamWrapper
implements org.apache.flink.core.fs.WrappingProxyCloseable<org.apache.flink.core.fs.FSDataInputStream>
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.| Constructor and Description |
|---|
FsSegmentDataInputStream(org.apache.flink.core.fs.FSDataInputStream inputStream,
long startingPosition,
long segmentSize) |
| Modifier and Type | Method and Description |
|---|---|
long |
getPos() |
void |
mark(int readlimit) |
boolean |
markSupported() |
int |
read() |
int |
read(byte[] b) |
int |
read(byte[] b,
int off,
int len) |
void |
reset() |
void |
seek(long desired) |
long |
skip(long n) |
available, close, getWrappedDelegatepublic FsSegmentDataInputStream(org.apache.flink.core.fs.FSDataInputStream inputStream,
long startingPosition,
long segmentSize)
throws IOException
IOExceptionpublic int read()
throws IOException
read in class org.apache.flink.core.fs.FSDataInputStreamWrapperIOExceptionpublic int read(byte[] b)
throws IOException
read in class org.apache.flink.core.fs.FSDataInputStreamWrapperIOExceptionpublic int read(byte[] b,
int off,
int len)
throws IOException
read in class org.apache.flink.core.fs.FSDataInputStreamWrapperIOExceptionpublic void seek(long desired)
throws IOException
seek in class org.apache.flink.core.fs.FSDataInputStreamWrapperIOExceptionpublic long getPos()
throws IOException
getPos in class org.apache.flink.core.fs.FSDataInputStreamWrapperIOExceptionpublic long skip(long n)
throws IOException
skip in class org.apache.flink.core.fs.FSDataInputStreamWrapperIOExceptionpublic void mark(int readlimit)
mark in class org.apache.flink.core.fs.FSDataInputStreamWrapperpublic void reset()
throws IOException
reset in class org.apache.flink.core.fs.FSDataInputStreamWrapperIOExceptionpublic boolean markSupported()
markSupported in class org.apache.flink.core.fs.FSDataInputStreamWrapperCopyright © 2014–2024 The Apache Software Foundation. All rights reserved.