public interface FileSystemClient
| Modifier and Type | Method and Description |
|---|---|
CloseableIterator<FileStatus> |
listFrom(java.lang.String filePath)
List the paths in the same directory that are lexicographically greater or equal to
(UTF-8 sorting) the given `path`.
|
CloseableIterator<java.io.ByteArrayInputStream> |
readFiles(CloseableIterator<Tuple2<java.lang.String,Tuple2<java.lang.Integer,java.lang.Integer>>> iter)
Read data specified by the start and end offset from the file.
|
CloseableIterator<FileStatus> listFrom(java.lang.String filePath) throws java.io.FileNotFoundException
filePath - Fully qualified path to a filejava.io.FileNotFoundException - if the file at the given path is not foundCloseableIterator<java.io.ByteArrayInputStream> readFiles(CloseableIterator<Tuple2<java.lang.String,Tuple2<java.lang.Integer,java.lang.Integer>>> iter) throws java.io.IOException
iter - Iterator for tuples (file path, range (start offset, end offset)ByteArrayInputStream.java.io.IOException