CompressionCodecs
CompressionCodecs
is a utility object…FIXME
Alias | Fully-Qualified Class Name |
---|---|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
setCodecConfiguration
Method
1 2 3 4 5 |
setCodecConfiguration(conf: Configuration, codec: String): Unit |
setCodecConfiguration
sets compression-related configurations to the Hadoop Configuration
per the input codec
.
Note
|
The input codec should be a fully-qualified class name, i.e. org.apache.hadoop.io.compress.SnappyCodec .
|
If the input codec
is defined (i.e. not null
), setCodecConfiguration
sets the following configuration properties.
Name | Value |
---|---|
|
|
|
|
|
The input |
|
|
|
The input |
If the input codec
is not defined (i.e. null
), setCodecConfiguration
sets the following configuration properties.
Name | Value |
---|---|
|
|
|
|
Note
|
setCodecConfiguration is used when CSVFileFormat, JsonFileFormat and TextFileFormat are requested to prepareWrite .
|