codec_to_method/1 | Translate codec in kafka batch attributes to compression method. |
compress/2 | Compress encoded batch. |
decompress/2 | Decompress batch. |
method_to_codec/1 | Translate compression method to bits for kafka batch attributes. |
provide/1 | Set snappy or lz4 compression modules. |
codec_to_method(A::byte()) -> kpro:compress_option()
Translate codec in kafka batch attributes to compression method.
compress(Name::kpro:compress_option(), IoData::iodata()) -> iodata()
Compress encoded batch.
decompress(X1::kpro:compress_option(), Bin::binary()) -> binary()
Decompress batch.
method_to_codec(X1) -> any()
Translate compression method to bits for kafka batch attributes.
provide(Libs::[{snappy | lz4, module()}]) -> ok
Set snappy or lz4 compression modules.
This should override the default usage of snappyer
and lz4b_frame
.
Generated by EDoc