Open
Description
Does the C++ version support appending to files? I haven't found any examples of appending in the test and sample code; it seems like the file is deleted and recreated each time, whereas the Java version does support appending。
C++
int TsFileWriter::open(const std::string &file_path, int flags, mode_t mode) {
if (check_file_exist(file_path)) {
return E_ALREADY_EXIST;
}
java
try (ForceAppendTsFileWriter fwriter = new ForceAppendTsFileWriter(f)) {
fwriter.doTruncate();
write(fwriter);
} catch (Exception e) {
LOGGER.error("ForceAppendTsFileWriter truncate or write error ", e);
}
}
Metadata
Metadata
Assignees
Labels
No labels
Activity