You are viewing a plain text version of this content. The canonical link for it is here.
Posted to reviews@iotdb.apache.org by GitBox <gi...@apache.org> on 2020/05/27 06:12:54 UTC

[GitHub] [incubator-iotdb] sqfgood opened a new issue #1274: TsFile文件只能读和写吗?能追加和修改吗?

sqfgood opened a new issue #1274:
URL: https://github.com/apache/incubator-iotdb/issues/1274


   TsFile文件只能读和写吗?能基于已有的TsFile文件实现追加和修改吗?


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to 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



[GitHub] [incubator-iotdb] jixuan1989 commented on issue #1274: TsFile文件只能读和写吗?能追加和修改吗?(Does TsFile only support Read and Write a New One? Can I append data to the file or modify the data in the File?)

Posted by GitBox <gi...@apache.org>.
jixuan1989 commented on issue #1274:
URL: https://github.com/apache/incubator-iotdb/issues/1274#issuecomment-634467374


   > Can I append data to the file ?
   
   可以,可以使用`RestorableTsFileIOWriter` 实现追加写;
   Yes, you can use `RestorableTsFileIOWriter` to append data to an existed TsFile.
   
   > Can I modify data in a  TsFile?
   
   不行, TsFile不能做数据修改,这种情况下要么使用IoTDB,要么自己组织多个TsFile并用后者替代前者的数据。
   No, you can not modify data in a TsFile. If you need to modify data, use IoTDB interface, or you can manage several TsFiles and use the latter version to cover the previous versions.
    
   


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to 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



[GitHub] [incubator-iotdb] qiaojialin commented on issue #1274: TsFile文件只能读和写吗?能追加和修改吗?(Does TsFile only support Read and Write a New One? Can I append data to the file or modify the data in the File?)

Posted by GitBox <gi...@apache.org>.
qiaojialin commented on issue #1274:
URL: https://github.com/apache/incubator-iotdb/issues/1274#issuecomment-634472406


   You can try this:
   
   ForceAppendTsFileWriter tsFileIOWriter = new ForceAppendTsFileWriter(f);
   TsFileWriter tsFileWriter = new TsFileWriter(tsFileIOWriter);
   
   No need to register schema again, then you can append data into it and close. (only append data in time ascending order)
   
   TsFile does not support modify. 


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to 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



[GitHub] [incubator-iotdb] qiaojialin removed a comment on issue #1274: TsFile文件只能读和写吗?能追加和修改吗?(Does TsFile only support Read and Write a New One? Can I append data to the file or modify the data in the File?)

Posted by GitBox <gi...@apache.org>.
qiaojialin removed a comment on issue #1274:
URL: https://github.com/apache/incubator-iotdb/issues/1274#issuecomment-634472406


   You can try this:
   
   ForceAppendTsFileWriter tsFileIOWriter = new ForceAppendTsFileWriter(f);
   TsFileWriter tsFileWriter = new TsFileWriter(tsFileIOWriter);
   
   No need to register schema again, then you can append data into it and close. (only append data in time ascending order)
   
   TsFile does not support modify. 


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to 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



[GitHub] [incubator-iotdb] jixuan1989 commented on issue #1274: TsFile文件只能读和写吗?能追加和修改吗?(Does TsFile only support Read and Write a New One? Can I append data to the file or modify the data in the File?)

Posted by GitBox <gi...@apache.org>.
jixuan1989 commented on issue #1274:
URL: https://github.com/apache/incubator-iotdb/issues/1274#issuecomment-634477451


   `ForceAppendTsFileWriter` also works if your TsFile is complete.


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to 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