This toolkit supports serialization and deserialization of messages in an Apache Avro format. It provides two operators, AvroToJSON and JSONToAvro, which respectively are used to convert an Avro message (with or without embedded schema) to a JSON string and a JSON string into an Avro message (or a block of Avro messages with embedded schema). Avro messages are in a binary format; hence they are represented as a Streams blob type.
The toolkit contains examples on how to use the operators.
Download a release package from Releases . Untar or unzip the archive into a directory of your choice. Add this directory to the toolkit path of your Streams installation by either:
- expand the environment variable
STREAMS_SPLPATHwith your toolkit directory - add the
-toption to the Streams Compilersccommand - edit the Toolkit Locations in the Streams Explorer of Streams Studio
See Develop