public class HadoopInput extends Object implements Input
FSDataInputStream to Trevni's Input.| Constructor and Description |
|---|
HadoopInput(Path path,
Configuration conf)
Construct given a path and a configuration.
|
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
long |
length()
Return the total length of the input.
|
int |
read(long p,
byte[] b,
int s,
int l)
Positioned read.
|
public HadoopInput(Path path, Configuration conf) throws IOException
IOExceptionpublic long length()
Inputpublic int read(long p,
byte[] b,
int s,
int l)
throws IOException
Inputread in interface InputIOExceptionpublic void close()
throws IOException
close in interface Closeableclose in interface AutoCloseableIOExceptionCopyright © 2009–2023 The Apache Software Foundation. All rights reserved.