【问题标题】:How to serialize just the Avro binary encoding without the fingerprint or schema如何在没有指纹或模式的情况下仅序列化 Avro 二进制编码
【发布时间】:2022-07-22 18:39:16
【问题描述】:

我们有一个系统,我们只需要 Avro 原始字节,没有 single object encoding 标头,也不需要 Avro 容器格式。 Just the bytes please。我们通过另一条路径将模式的标识符传递给反序列化器。

我在Avro Rust sources or documentation 中找不到正确的呼叫

有什么提示吗?

【问题讨论】:

    标签: rust avro


    【解决方案1】:

    因为在这段代码中这是不可能的。 Writer 构造函数自动将模式序列化到缓冲区中。我能想到的唯一方法是编写我们自己的W,它会自动放弃我们不需要的所有内容。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2018-01-20
      • 1970-01-01
      • 2010-10-08
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2012-05-07
      相关资源
      最近更新 更多