Package org.apache.trevni.avro
Class HadoopInput
java.lang.Object
org.apache.trevni.avro.HadoopInput
- All Implemented Interfaces:
Closeable
,AutoCloseable
,org.apache.trevni.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()- Specified by:
length
in interfaceorg.apache.trevni.Input
-
read
- Specified by:
read
in interfaceorg.apache.trevni.Input
- Throws:
IOException
-
close
- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceCloseable
- Throws:
IOException
-