airborne12 commented on code in PR #17874:
URL: https://github.com/apache/doris/pull/17874#discussion_r1140855107
##########
be/src/olap/rowset/beta_rowset.cpp:
##########
@@ -88,6 +88,22 @@ std::string
BetaRowset::local_segment_path_segcompacted(const std::string& table
return fmt::format("{}/{}_{}-{}.dat", tablet_path, rowset_id.to_string(),
begin, end);
}
+std::string BetaRowset::inverted_index_file_path(const string& rowset_dir,
+ const RowsetId& rowset_id,
int segment_id,
+ int64_t index_id) {
+ // {rowset_dir}/{schema_hash}/{rowset_id}_{seg_num}_{index_id}.idx
+ return fmt::format("{}/{}_{}_{}.idx", rowset_dir, rowset_id.to_string(),
segment_id, index_id);
+}
Review Comment:
can we move inverted_index_file_path to inverted_index_desc.h?
--
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]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]