Class FSDataInputStreamWrapper
java.lang.Object
org.apache.flink.formats.avro.utils.FSDataInputStreamWrapper
- All Implemented Interfaces:
Closeable,AutoCloseable,org.apache.avro.file.SeekableInput
public class FSDataInputStreamWrapper
extends Object
implements Closeable, org.apache.avro.file.SeekableInput
Code copy pasted from org.apache.avro.mapred.FSInput (which is Apache licensed as well).
The wrapper keeps track of the position in the data stream.
-
Constructor Summary
ConstructorsConstructorDescriptionFSDataInputStreamWrapper(org.apache.flink.core.fs.FSDataInputStream stream, long len) -
Method Summary
-
Constructor Details
-
FSDataInputStreamWrapper
public FSDataInputStreamWrapper(org.apache.flink.core.fs.FSDataInputStream stream, long len)
-
-
Method Details
-
length
- Specified by:
lengthin interfaceorg.apache.avro.file.SeekableInput- Throws:
IOException
-
read
- Specified by:
readin interfaceorg.apache.avro.file.SeekableInput- Throws:
IOException
-
seek
- Specified by:
seekin interfaceorg.apache.avro.file.SeekableInput- Throws:
IOException
-
tell
- Specified by:
tellin interfaceorg.apache.avro.file.SeekableInput- Throws:
IOException
-
close
- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Throws:
IOException
-