Example usage for org.apache.hadoop.io.compress CompressionCodec interface-usage

List of usage examples for org.apache.hadoop.io.compress CompressionCodec interface-usage

Introduction

In this page you can find the example usage for org.apache.hadoop.io.compress CompressionCodec interface-usage.

Usage

From source file parquet.hadoop.codec.SnappyCodec.java

/**
 * Snappy compression codec for Parquet.  We do not use the default hadoop
 * one since that codec adds a blocking structure around the base snappy compression
 * algorithm.  This is useful for hadoop to minimize the size of compression blocks
 * for their file formats (e.g. SequenceFile) but is undesirable for Parquet since
 * we already have the data page which provides that.