compressionType property

CompressionType get compressionType

Compress blocks using the specified compression algorithm. This parameter can be changed dynamically.

Default: CompressionType.snappy, which gives lightweight but fast compression.

Typical speeds of CompressionType.snappy on an Intel(R) Core(TM)2 2.4GHz: ~200-500MB/s compression ~400-800MB/s decompression Note that these speeds are significantly faster than most persistent storage speeds, and therefore it is typically never worth switching to kNoCompression. Even if the input data is incompressible, the CompressionType.snappy implementation will efficiently detect that and will switch to uncompressed mode.

Implementation

CompressionType get compressionType;