kafka_ex v0.6.2 KafkaEx.Compression
Handles compression/decompression of messages.
See https://cwiki.apache.org/confluence/display/KAFKA/A+Guide+To+The+Kafka+Protocol#AGuideToTheKafkaProtocol-Compression
To add new compression types:
- Add the appropriate dependency to mix.exs (don’t forget to add it to the application list).
- Add the appropriate attribute value and compression_type atom.
- Add a decompress function clause.
- Add a compress function clause.
Summary
Functions
This function should pattern match on the compression_type atom and return the compressed data as well as the corresponding attribute value
This function should pattern match on the attribute value and return the decompressed data
Types
Functions
This function should pattern match on the compression_type atom and return the compressed data as well as the corresponding attribute value.
This function should pattern match on the attribute value and return the decompressed data.