avro-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Sam Groth <sgr...@yahoo-inc.com>
Subject RE: Clarification required on Avro
Date Thu, 12 Sep 2013 14:57:51 GMT
See the avro_value_to_json method in http://svn.apache.org/viewvc/avro/trunk/lang/c/src/avro/value.h?revision=1331812&view=markup

If you follow the steps that you mention, this method will give a JSON string of the data.

Hope this helps,

From: Guruprasad Nagaraj [gpn.devnull@gmail.com]
Sent: Thursday, September 12, 2013 09:44
To: user@avro.apache.org
Subject: Clarification required on Avro

I read through the documentation on Avro C but couldn't get a definitive answer to whether
this is possible.

The goal is to convert a stream of raw data to JSON using a JSON schema.
For e.g.
- A Syslog message format from a linux sub-system is represented in a JSON Schema
- The JSON schema is loaded into Avro C
- The actual message when arrives should be passed into a function that converts the message
into JSON formatted output using the JSON schema which was loaded into Avro C earlier.

I searched through the message archives and couldn't get this. I haven't looked into all the
APIs provided by Avro C, yet.
Can anybody help?

Thanks and Best Regards,
Guruprasad Nagaraj

View raw message