Package org.apache.avro.mapred
Class FsInput
java.lang.Object
org.apache.avro.mapred.FsInput
- All Implemented Interfaces:
Closeable
,AutoCloseable
,org.apache.avro.file.SeekableInput
Adapt an
FSDataInputStream
to SeekableInput
.-
Constructor Summary
ConstructorsConstructorDescriptionFsInput
(Path path, Configuration conf) Construct given a path and a configuration.FsInput
(Path path, FileSystem fileSystem) Construct given a path and aFileSystem
. -
Method Summary
-
Constructor Details
-
FsInput
Construct given a path and a configuration.- Throws:
IOException
-
FsInput
Construct given a path and aFileSystem
.- Throws:
IOException
-
-
Method Details
-
length
public long length()- Specified by:
length
in interfaceorg.apache.avro.file.SeekableInput
-
read
- Specified by:
read
in interfaceorg.apache.avro.file.SeekableInput
- Throws:
IOException
-
seek
- Specified by:
seek
in interfaceorg.apache.avro.file.SeekableInput
- Throws:
IOException
-
tell
- Specified by:
tell
in interfaceorg.apache.avro.file.SeekableInput
- Throws:
IOException
-
close
- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceCloseable
- Throws:
IOException
-