Learn R Programming

arrow (version 8.0.0)

Codec: Compression Codec class

Description

Codecs allow you to create compressed input and output streams.

Arguments

Factory

The Codec$create() factory method takes the following arguments:

  • type: string name of the compression method. Possible values are "uncompressed", "snappy", "gzip", "brotli", "zstd", "lz4", "lzo", or "bz2". type may be upper- or lower-cased. Not all methods may be available; support depends on build-time flags for the C++ library. See codec_is_available(). Most builds support at least "snappy" and "gzip". All support "uncompressed".

  • compression_level: compression level, the default value (NA) uses the default compression level for the selected compression type.