jt2594838 commented on code in PR #345:
URL: https://github.com/apache/tsfile/pull/345#discussion_r1923035876
##########
cpp/src/common/tablet.cc:
##########
@@ -104,6 +105,47 @@ int Tablet::add_value(uint32_t row_index, uint32_t
schema_index, T val) {
return ret;
}
+void* Tablet::get_value(int row_index, uint32_t schema_index,
common::TSDataType& data_type) const {
+ if (LIKELY(schema_index >= schema_vec_->size())) {
+ return nullptr;
+ }
+ const MeasurementSchema& schema = schema_vec_->at(schema_index);
+
+ void* column_values = value_matrix_[schema_index];
+ data_type = schema.data_type_;
+ if (!bitmaps_[schema_index].test(row_index)) {
+ return nullptr;
+ }
Review Comment:
This is from PageWriter I guess, not Tablet.
--
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]