MCPcopy Create free account
hub / github.com/apache/pig / getTmpFileStorageObject

Method getTmpFileStorageObject

src/org/apache/pig/impl/util/Utils.java:368–377  ·  view source on GitHub ↗
(Configuration conf)

Source from the content-addressed store, hash-verified

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();

Callers 2

initMethod · 0.95

Calls 2

toPropertiesMethod · 0.95

Tested by

no test coverage detected