@InterfaceAudience.Private public class ConfigUtils extends Object
Constructor and Description |
---|
ConfigUtils() |
Modifier and Type | Method and Description |
---|---|
static void |
addConfigMapToConfiguration(org.apache.hadoop.conf.Configuration conf,
Map<String,String> confMap) |
static boolean |
doesKeyQualify(String key,
List<Set<String>> validKeySets,
List<String> allowedPrefixes) |
static Map<String,String> |
extractConfigurationMap(org.apache.hadoop.conf.Configuration conf,
List<Set<String>> validKeySets,
List<String> allowedPrefixes) |
static Map<String,String> |
extractConfigurationMap(Map<String,String> confMap,
List<Set<String>> validKeySets,
List<String> allowedPrefixes) |
static Map<String,String> |
extractConfigurationMap(Map<String,String> confMap,
Set<String> allowedKeys) |
static <V> org.apache.hadoop.io.RawComparator<V> |
getInputKeySecondaryGroupingComparator(org.apache.hadoop.conf.Configuration conf) |
static Class<? extends org.apache.hadoop.io.compress.CompressionCodec> |
getIntermediateInputCompressorClass(org.apache.hadoop.conf.Configuration conf,
Class<org.apache.hadoop.io.compress.DefaultCodec> defaultValue) |
static <K> Class<K> |
getIntermediateInputKeyClass(org.apache.hadoop.conf.Configuration conf) |
static <K> org.apache.hadoop.io.RawComparator<K> |
getIntermediateInputKeyComparator(org.apache.hadoop.conf.Configuration conf) |
static <V> Class<V> |
getIntermediateInputValueClass(org.apache.hadoop.conf.Configuration conf) |
static Class<? extends org.apache.hadoop.io.compress.CompressionCodec> |
getIntermediateOutputCompressorClass(org.apache.hadoop.conf.Configuration conf,
Class<org.apache.hadoop.io.compress.DefaultCodec> defaultValue) |
static <K> Class<K> |
getIntermediateOutputKeyClass(org.apache.hadoop.conf.Configuration conf) |
static <K> org.apache.hadoop.io.RawComparator<K> |
getIntermediateOutputKeyComparator(org.apache.hadoop.conf.Configuration conf) |
static <V> Class<V> |
getIntermediateOutputValueClass(org.apache.hadoop.conf.Configuration conf) |
static boolean |
isIntermediateInputCompressed(org.apache.hadoop.conf.Configuration conf) |
static void |
mergeConfsWithExclusions(org.apache.hadoop.conf.Configuration destConf,
Map<String,String> srcConf,
Set<String> excludedKeySet) |
static boolean |
shouldCompressIntermediateOutput(org.apache.hadoop.conf.Configuration conf) |
static boolean |
useNewApi(org.apache.hadoop.conf.Configuration conf) |
public static Class<? extends org.apache.hadoop.io.compress.CompressionCodec> getIntermediateOutputCompressorClass(org.apache.hadoop.conf.Configuration conf, Class<org.apache.hadoop.io.compress.DefaultCodec> defaultValue)
public static Class<? extends org.apache.hadoop.io.compress.CompressionCodec> getIntermediateInputCompressorClass(org.apache.hadoop.conf.Configuration conf, Class<org.apache.hadoop.io.compress.DefaultCodec> defaultValue)
public static boolean shouldCompressIntermediateOutput(org.apache.hadoop.conf.Configuration conf)
public static boolean isIntermediateInputCompressed(org.apache.hadoop.conf.Configuration conf)
public static <V> Class<V> getIntermediateOutputValueClass(org.apache.hadoop.conf.Configuration conf)
public static <V> Class<V> getIntermediateInputValueClass(org.apache.hadoop.conf.Configuration conf)
public static <K> Class<K> getIntermediateOutputKeyClass(org.apache.hadoop.conf.Configuration conf)
public static <K> Class<K> getIntermediateInputKeyClass(org.apache.hadoop.conf.Configuration conf)
public static <K> org.apache.hadoop.io.RawComparator<K> getIntermediateOutputKeyComparator(org.apache.hadoop.conf.Configuration conf)
public static <K> org.apache.hadoop.io.RawComparator<K> getIntermediateInputKeyComparator(org.apache.hadoop.conf.Configuration conf)
public static <V> org.apache.hadoop.io.RawComparator<V> getInputKeySecondaryGroupingComparator(org.apache.hadoop.conf.Configuration conf)
public static boolean useNewApi(org.apache.hadoop.conf.Configuration conf)
@InterfaceAudience.Private public static Map<String,String> extractConfigurationMap(Map<String,String> confMap, Set<String> allowedKeys)
@InterfaceAudience.Private public static void addConfigMapToConfiguration(org.apache.hadoop.conf.Configuration conf, Map<String,String> confMap)
@InterfaceAudience.Private public static Map<String,String> extractConfigurationMap(Map<String,String> confMap, List<Set<String>> validKeySets, List<String> allowedPrefixes)
@InterfaceAudience.Private public static Map<String,String> extractConfigurationMap(org.apache.hadoop.conf.Configuration conf, List<Set<String>> validKeySets, List<String> allowedPrefixes)
@InterfaceAudience.Private public static boolean doesKeyQualify(String key, List<Set<String>> validKeySets, List<String> allowedPrefixes)
Copyright © 2016 Apache Software Foundation. All rights reserved.