How do I just serialize single message using php? It appears php uses
Container Files serialization approach and for my project I need to
serialize single message without attaching schema as header.
Thanks so much for your help
I've not used the PHP bindings, so this may not be the full procedure.
You should be able to create an AvroIODatumWriter[1] to write to a
string. In order to do that, you need to first create an
AvroStringIO[2] and wrap that in a AvroIOBinaryEncoder[3]. It should
look something like this:
$io =
The schema won't be embedded if you use AvroIODatumWriter directly.
You'll have to make sure that the schema is available when you later
deserialize the record, but I assumed you have a solution for that
already.
If you want to see a Java version of this, we do this in the Kite
SDK[1] to make