Package org.apache.trevni.avro
Class HadoopInput
java.lang.Object
org.apache.trevni.avro.HadoopInput
- All Implemented Interfaces:
Closeable
,AutoCloseable
,Input
Adapt a Hadoop
FSDataInputStream
to Trevni's Input
.-
Constructor Summary
ConstructorDescriptionHadoopInput
(Path path, Configuration conf) Construct given a path and a configuration. -
Method Summary
-
Constructor Details
-
HadoopInput
Construct given a path and a configuration.- Throws:
IOException
-
-
Method Details
-
length
public long length()Description copied from interface:Input
Return the total length of the input. -
read
Description copied from interface:Input
Positioned read.- Specified by:
read
in interfaceInput
- Throws:
IOException
-
close
- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceCloseable
- Throws:
IOException
-