An example is worth a thousand words:
cat infile.avro | avro-tools recodec deflate - - > outfile.avro
The above example would create a new file, "outfile.avro", with the same contents as "infile.avro". However, the codec of "outfile.avro" would be "deflate", regardless of the codec of "infile.avro".
- The tool should preserve any metadata present in the input file.
- Supported codecs will be "deflate" and "null".
- Optionally add support for specifying the deflation level, perhaps with syntax as follows: "deflate:N" where N is the deflation level, e.g. "deflate:4".
Does this proposal sound reasonable?