Interface InputFile
- All Known Implementing Classes:
HadoopInputFile
public interface InputFile
Interface for reading a file and getting metadata about it.
-
Method Details
-
length
Get the size of the file.- Returns:
- the size of the file.
- Throws:
IOException
-
path
String path()Get the path of the file.- Returns:
- the path of the file.
-
newStream
Get the input stream to read the file.- Returns:
- the input stream to read the file. It is the responsibility of the caller to close the stream.
- Throws:
IOException
-