Search in sources :

Example 1 with FileSystemFactory

use of org.apache.flink.core.fs.FileSystemFactory in project flink by apache.

the class HadoopS3FileSystemsSchemesTest method testFactory.

private static void testFactory(String scheme) {
    ServiceLoader<FileSystemFactory> serviceLoader = ServiceLoader.load(FileSystemFactory.class);
    for (FileSystemFactory fs : serviceLoader) {
        if (scheme.equals(fs.getScheme())) {
            // found the matching scheme
            return;
        }
    }
    fail("No factory available for scheme " + scheme);
}
Also used : FileSystemFactory(org.apache.flink.core.fs.FileSystemFactory)

Aggregations

FileSystemFactory (org.apache.flink.core.fs.FileSystemFactory)1