public abstract class CodecConfig extends Object
from(org.apache.hadoop.mapred.JobConf) for mapred API,
use from(org.apache.hadoop.mapreduce.TaskAttemptContext) for mapreduce API| Constructor 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)
jobConf - a mapred job configurationpublic static CodecConfig from(org.apache.hadoop.mapreduce.TaskAttemptContext context)
context - a mapreduce task attempt contextpublic static boolean isParquetCompressionSet(org.apache.hadoop.conf.Configuration conf)
public static CompressionCodecName getParquetCompressionCodec(org.apache.hadoop.conf.Configuration configuration)
public CompressionCodecName getCodec()
Copyright © 2023 The Apache Software Foundation. All rights reserved.