调用 close() 后是否可以重新打开 ParquetWriter?
我目前正在使用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 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论