(Configuration conf)
| 366 | } |
| 367 | |
| 368 | public static FileInputLoadFunc getTmpFileStorageObject(Configuration conf) throws IOException { |
| 369 | Class<? extends FileInputLoadFunc> storageClass = getTmpFileStorageClass(ConfigurationUtil.toProperties(conf)); |
| 370 | try { |
| 371 | return storageClass.newInstance(); |
| 372 | } catch (InstantiationException e) { |
| 373 | throw new IOException(e); |
| 374 | } catch (IllegalAccessException e) { |
| 375 | throw new IOException(e); |
| 376 | } |
| 377 | } |
| 378 | |
| 379 | public static Class<? extends FileInputLoadFunc> getTmpFileStorageClass(Properties properties) { |
| 380 | return getTmpFileStorage(properties).getStorageClass(); |
no test coverage detected