761417898 commented on code in PR #192:
URL: https://github.com/apache/tsfile/pull/192#discussion_r1720873025
##########
cpp/src/writer/tsfile_writer.cc:
##########
@@ -125,16 +126,19 @@ int TsFileWriter::open(const std::string &file_path, int
flags, mode_t mode) {
if (RET_FAIL(write_file_->create(file_path, flags, mode))) {
} else {
io_writer_->init(write_file_);
- if (RET_FAIL(io_writer_->start_file())) {
- return ret;
- }
-#if DEBUG_SE
- std::cout << "finish writing magic code" << std::endl;
-#endif
}
return ret;
}
+int TsFileWriter::register_aligned_timeseries(
+ const std::string &device_path, const std::string &measurement_name,
+ common::TSDataType data_type, common::TSEncoding encoding,
+ common::CompressionType compression_type) {
+ MeasurementSchema *ms = new MeasurementSchema(measurement_name, data_type,
+ encoding, compression_type);
+ return register_timeseries(device_path, ms, true);
+}
+
Review Comment:
Updated the interface for registering aligned time series to support
receiving a list of measurements.
`int TsFileWriter::register_aligned_timeseries(const std::string
&device_path, const std::vector<MeasurementSchema *> &measurement_schema_vec)`
--
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.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]