简体   繁体   English

Fastavro 无模式阅读器

[英]Fastavro Schemaless Reader

My Follow-up question of this -> [Avro deserialization from Kafka using fastavro]我对此的后续问题-> [使用 fastavro 从 Kafka 进行 Avro 反序列化]

Is there any way to read all records from avro file(Without Header) using fastavro schemaless_reader()?有没有办法使用 fastavro schemaless_reader() 从 avro 文件(无标题)中读取所有记录?

Schemaless_Reader

The schemaless_reader can only read a single record so that probably won't work. schemaless_reader只能读取一条记录,因此可能无法正常工作。

If you have a true avro file, even if you strip out the header, there might still be other non-record information (for example, the sync marker) so I wouldn't suggest taking an actual avro file, stripping the header, and expect to still be able to read it.如果你有一个真正的 avro 文件,即使你去掉了 header,也可能还有其他非记录信息(例如同步标记),所以我不建议使用真正的 avro 文件,去掉 header 和希望仍然能够阅读它。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM