org.apache.flink.core.fs.local.LocalFileStatus Java Examples

The following examples show how to use org.apache.flink.core.fs.local.LocalFileStatus. You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: TestFileSystem.java    From Flink-CEPplus with Apache License 2.0 5 votes vote down vote up
@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;
}
 
Example #2
Source File: TestFileSystem.java    From flink with Apache License 2.0 5 votes vote down vote up
@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;
}
 
Example #3
Source File: TestFileSystem.java    From flink with Apache License 2.0 5 votes vote down vote up
@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;
}
 
Example #4
Source File: TestFileSystem.java    From Flink-CEPplus with Apache License 2.0 4 votes vote down vote up
@Override
public FileStatus getFileStatus(Path f) throws IOException {
	LocalFileStatus status = (LocalFileStatus) super.getFileStatus(f);
	return new LocalFileStatus(status.getFile(), this);
}
 
Example #5
Source File: TestFileSystem.java    From flink with Apache License 2.0 4 votes vote down vote up
@Override
public FileStatus getFileStatus(Path f) throws IOException {
	LocalFileStatus status = (LocalFileStatus) super.getFileStatus(f);
	return new LocalFileStatus(status.getFile(), this);
}
 
Example #6
Source File: TestFileSystem.java    From flink with Apache License 2.0 4 votes vote down vote up
@Override
public FileStatus getFileStatus(Path f) throws IOException {
	LocalFileStatus status = (LocalFileStatus) super.getFileStatus(f);
	return new LocalFileStatus(status.getFile(), this);
}