调用 close() 后是否可以重新打开 ParquetWriter?

发布于 2025-01-19 14:02:08 字数 318 浏览 2 评论 0原文

我目前正在使用ParquetWriter将AVRO记录写入Parquet文件。我可以使用write()collect()根据需要编写和关闭文件的方法。现在,我有一个用例,需要重新打开关闭的文件。我看不到parquetWriter中的这种方法。基于镶木quet规范,似乎可以重新打开文件。我想知道是否有任何理由为什么我们没有实现reopen()方法。还是我可以使用其他类来重新打开封闭的镶木quet文件?

如果我想实施这样的方法,有人可以为我提供任何指南吗?谢谢。

I'm currently using ParquetWriter to write Avro records to parquet files. I can use the write() and close() methods to write and close files as needed. Now I have a use case where I need to reopen a closed file. I don't see such a method exists in ParquetWriter. Based on the Parquet specification, it seems possible to reopen a file. I'm wondering if there is any reason why we don't have a reopen() method implemented. Or is there any other classes that I could use to reopen a closed parquet file?

If I would like to implement such a method, could someone provide me with any guideline? Thanks.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。
列表为空,暂无数据
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文