org.apache.flink.core.fs.FileSystemFactory Java Examples
The following examples show how to use
org.apache.flink.core.fs.FileSystemFactory.
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: HadoopS3FileSystemsSchemesTest.java From Flink-CEPplus with Apache License 2.0 | 5 votes |
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); }
Example #2
Source File: HadoopS3FileSystemsSchemesTest.java From flink with Apache License 2.0 | 5 votes |
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); }
Example #3
Source File: HadoopS3FileSystemsSchemesTest.java From flink with Apache License 2.0 | 5 votes |
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); }