snappy
The snappy
command compresses or decompresses CSV files using the Snappy compression algorithm.
Syntax
qsv snappy [options] <input_file> [<output_file>]
Description
The snappy
command is used to compress or decompress CSV files using the Snappy compression algorithm. This is useful for reducing the size of large datasets.
Options
-d, --decompress
: Decompress the input file--no-headers
: When set, the first row will not be interpreted as headers
Examples
Compress File
Compress a CSV file:
qsv snappy DLD_Transactions_English_500.csv compressed_file.snappy
Decompress File
Decompress a compressed CSV file:
qsv snappy -d compressed_file.snappy decompressed_file.csv
Common Use Cases
- Reducing the size of large datasets
- Storing or transmitting datasets more efficiently
Tips
- Verify the output to ensure the compression or decompression is successful
- Use in combination with other commands for complex data processing