public abstract class CodecConfig extends Object
from(org.apache.hadoop.mapred.JobConf)
for mapred API,
use from(org.apache.hadoop.mapreduce.TaskAttemptContext)
for mapreduce APIConstructor and Description |
---|
CodecConfig() |
Modifier and Type | Method and Description |
---|---|
static CodecConfig |
from(org.apache.hadoop.mapred.JobConf jobConf)
use mapred api to read codec config
|
static CodecConfig |
from(org.apache.hadoop.mapreduce.TaskAttemptContext context)
use mapreduce api to read codec config
|
CompressionCodecName |
getCodec() |
abstract org.apache.hadoop.conf.Configuration |
getConfiguration() |
abstract Class |
getHadoopOutputCompressorClass(Class defaultCodec) |
static CompressionCodecName |
getParquetCompressionCodec(org.apache.hadoop.conf.Configuration configuration) |
abstract boolean |
isHadoopCompressionSet() |
static boolean |
isParquetCompressionSet(org.apache.hadoop.conf.Configuration conf) |
public abstract boolean isHadoopCompressionSet()
public abstract Class getHadoopOutputCompressorClass(Class defaultCodec)
defaultCodec
- the codec to use when codec is not set in confpublic abstract org.apache.hadoop.conf.Configuration getConfiguration()
public static CodecConfig from(org.apache.hadoop.mapred.JobConf jobConf)
public static CodecConfig from(org.apache.hadoop.mapreduce.TaskAttemptContext context)
public static boolean isParquetCompressionSet(org.apache.hadoop.conf.Configuration conf)
public static CompressionCodecName getParquetCompressionCodec(org.apache.hadoop.conf.Configuration configuration)
public CompressionCodecName getCodec()
Copyright © 2015 The Apache Software Foundation. All rights reserved.