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

Method getTmpFileCompressorName

src/org/apache/pig/impl/util/Utils.java:356–366  ·  view source on GitHub ↗
(PigContext pigContext)

Source from the content-addressed store, hash-verified

354 }
355
356 public static String getTmpFileCompressorName(PigContext pigContext) {
357 if (pigContext == null)
358 return InterStorage.class.getName();
359
360 String codec = pigContext.getProperties().getProperty(PigConfiguration.PIG_TEMP_FILE_COMPRESSION_CODEC, "");
361 if (codec.equals(TEMPFILE_CODEC.LZO.lowerName())) {
362 pigContext.getProperties().setProperty("io.compression.codec.lzo.class", "com.hadoop.compression.lzo.LzoCodec");
363 }
364
365 return getTmpFileStorage(pigContext.getProperties()).getStorageClass().getName();
366 }
367
368 public static FileInputLoadFunc getTmpFileStorageObject(Configuration conf) throws IOException {
369 Class<? extends FileInputLoadFunc> storageClass = getTmpFileStorageClass(ConfigurationUtil.toProperties(conf));

Callers 10

getTempFileSpecMethod · 0.95
openIteratorMethod · 0.95
visitMethod · 0.95
getTempFileSpecMethod · 0.95
visitMROpMethod · 0.95
adjustMethod · 0.95
getTempFileSpecMethod · 0.95
getSamplingJobMethod · 0.95
getTempFileSpecMethod · 0.95
checkLeafIsStoreMethod · 0.95

Calls 8

getTmpFileStorageMethod · 0.95
getPropertyMethod · 0.80
getStorageClassMethod · 0.80
setPropertyMethod · 0.65
getNameMethod · 0.45
getPropertiesMethod · 0.45
equalsMethod · 0.45
lowerNameMethod · 0.45

Tested by 1

getTempFileSpecMethod · 0.76