Encodes the given data according to the given schema, and pass it to the emit_cb
data
schema
emit_cb
Params are:
The data to encode (can be any perl data structure, but it should match schema)
The schema to use to encode data
emit_cb($byte_ref)
The callback that will be invoked with the a reference to the encoded data in parameters.
To install Avro, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Avro
CPAN shell
perl -MCPAN -e shell install Avro
For more information on module installation, please visit the detailed CPAN module installation guide.