flink-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From GitBox <...@apache.org>
Subject [GitHub] tzulitai commented on a change in pull request #6078: [FLINK-9438] Add documentation for AvroDeserializationSchema
Date Mon, 30 Jul 2018 10:03:57 GMT
tzulitai commented on a change in pull request #6078: [FLINK-9438] Add documentation for AvroDeserializationSchema
URL: https://github.com/apache/flink/pull/6078#discussion_r206076706
 
 

 ##########
 File path: docs/dev/connectors/kafka.md
 ##########
 @@ -166,6 +166,39 @@ For convenience, Flink provides the following schemas:
     The KeyValue objectNode contains a "key" and "value" field which contain all fields,
as well as
     an optional "metadata" field that exposes the offset/partition/topic for this message.
     
+3. `AvroDeserializationSchema` which reads data serialized with Avro format using statically
provided schema. It can
+    infer the schema from avro generated classes (`AvroDeserializationSchema.forSpecific(...)`)
or it can work with `GenericRecords`
+    with manually provided schema (with `AvroDeserializationSchema.forGeneric(...)`). This
deserialization schema expects that
+    the serialized records DO NOT contain embedded schema.
+
+    - There is also version of this schema available that can lookup writers schema (schema
which was used to write the record) in
 
 Review comment:
   also "a" version ...

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services

Mime
View raw message