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
ConstructorsConstructorDescriptionHadoopInput(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:InputReturn the total length of the input. -
read
Description copied from interface:InputPositioned read.- Specified by:
readin interfaceInput- Throws:
IOException
-
close
- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Throws:
IOException
-