Search in sources :

Example 1 with LocalFileStatus

use of org.apache.flink.core.fs.local.LocalFileStatus in project flink by apache.

the class TestFileSystem method listStatus.

@Override
public FileStatus[] listStatus(Path f) throws IOException {
    FileStatus[] stati = super.listStatus(f);
    LocalFileStatus[] newStati = new LocalFileStatus[stati.length];
    for (int i = 0; i < stati.length; i++) {
        newStati[i] = new LocalFileStatus(((LocalFileStatus) stati[i]).getFile(), this);
    }
    return newStati;
}
Also used : FileStatus(org.apache.flink.core.fs.FileStatus) LocalFileStatus(org.apache.flink.core.fs.local.LocalFileStatus) LocalFileStatus(org.apache.flink.core.fs.local.LocalFileStatus)

Aggregations

FileStatus (org.apache.flink.core.fs.FileStatus)1 LocalFileStatus (org.apache.flink.core.fs.local.LocalFileStatus)1