Package org.apache.iceberg.parquet
Class ParquetCodecFactory
- java.lang.Object
 - 
- org.apache.parquet.hadoop.CodecFactory
 - 
- org.apache.iceberg.parquet.ParquetCodecFactory
 
 
 
- 
- All Implemented Interfaces:
 org.apache.parquet.compression.CompressionCodecFactory
public class ParquetCodecFactory extends org.apache.parquet.hadoop.CodecFactoryThis class implements a codec factory that is used when reading from Parquet. It adds a workaround to cache codecs by name and level, not just by name. This can be removed when this change is made to Parquet. 
- 
- 
Constructor Summary
Constructors Constructor Description ParquetCodecFactory(org.apache.hadoop.conf.Configuration configuration, int pageSize) 
- 
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected org.apache.hadoop.io.compress.CompressionCodecgetCodec(org.apache.parquet.hadoop.metadata.CompressionCodecName codecName)This is copied fromCodecFactoryand modified to include the level in the cache key. 
 - 
 
- 
- 
Method Detail
- 
getCodec
protected org.apache.hadoop.io.compress.CompressionCodec getCodec(org.apache.parquet.hadoop.metadata.CompressionCodecName codecName)
This is copied fromCodecFactoryand modified to include the level in the cache key.- Overrides:
 getCodecin classorg.apache.parquet.hadoop.CodecFactory
 
 - 
 
 -