Package org.apache.flink.api.common.io
Class BinaryInputFormat.BlockBasedInput
- java.lang.Object
-
- java.io.InputStream
-
- java.io.FilterInputStream
-
- org.apache.flink.api.common.io.BinaryInputFormat.BlockBasedInput
-
- All Implemented Interfaces:
Closeable,AutoCloseable
- Enclosing class:
- BinaryInputFormat<T>
protected class BinaryInputFormat.BlockBasedInput extends FilterInputStream
Reads the content of a block of data. The block contains itsBlockInfoat the end, and this method takes this into account when reading the data.
-
-
Field Summary
-
Fields inherited from class java.io.FilterInputStream
in
-
-
Constructor Summary
Constructors Constructor Description BlockBasedInput(FSDataInputStream in, int blockSize)BlockBasedInput(FSDataInputStream in, int startPos, long length)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intread()intread(byte[] b)intread(byte[] b, int off, int len)-
Methods inherited from class java.io.FilterInputStream
available, close, mark, markSupported, reset, skip
-
Methods inherited from class java.io.InputStream
nullInputStream, readAllBytes, readNBytes, readNBytes, transferTo
-
-
-
-
Constructor Detail
-
BlockBasedInput
public BlockBasedInput(FSDataInputStream in, int blockSize)
-
BlockBasedInput
public BlockBasedInput(FSDataInputStream in, int startPos, long length)
-
-
Method Detail
-
read
public int read() throws IOException- Overrides:
readin classFilterInputStream- Throws:
IOException
-
read
public int read(byte[] b) throws IOException- Overrides:
readin classFilterInputStream- Throws:
IOException
-
read
public int read(byte[] b, int off, int len) throws IOException- Overrides:
readin classFilterInputStream- Throws:
IOException
-
-