Skip to content

Commit

Permalink
Update flag name to exclude term: IR
Browse files Browse the repository at this point in the history
  • Loading branch information
haiqi96 committed Dec 5, 2024
1 parent b599a08 commit 826138c
Show file tree
Hide file tree
Showing 7 changed files with 9 additions and 9 deletions.
6 changes: 3 additions & 3 deletions components/core/src/clp/clo/clo.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -171,7 +171,7 @@ bool extract_ir(CommandLineArguments const& command_line_args) {
string const& orig_file_id,
size_t begin_message_ix,
size_t end_message_ix,
bool is_last_ir_chunk) {
bool is_last_chunk) {
auto dest_ir_file_name = orig_file_id;
dest_ir_file_name += "_" + std::to_string(begin_message_ix);
dest_ir_file_name += "_" + std::to_string(end_message_ix);
Expand Down Expand Up @@ -207,8 +207,8 @@ bool extract_ir(CommandLineArguments const& command_line_args) {
static_cast<int64_t>(end_message_ix)
),
bsoncxx::builder::basic::kvp(
clp::clo::cResultsCacheKeys::IrOutput::IsLastIrChunk,
is_last_ir_chunk
clp::clo::cResultsCacheKeys::IrOutput::IsLastChunk,
is_last_chunk
)
)));
return true;
Expand Down
2 changes: 1 addition & 1 deletion components/core/src/clp/clo/constants.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ constexpr char Path[]{"path"};
constexpr char StreamId[]{"stream_id"};
constexpr char BeginMsgIx[]{"begin_msg_ix"};
constexpr char EndMsgIx[]{"end_msg_ix"};
constexpr char IsLastIrChunk[]{"is_last_ir_chunk"};
constexpr char IsLastChunk[]{"is_last_chunk"};
} // namespace IrOutput

namespace SearchOutput {
Expand Down
2 changes: 1 addition & 1 deletion components/core/src/clp/clp/FileDecompressor.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ class FileDecompressor {
*
* @tparam IrOutputHandler Function to handle the resulting IR chunks.
* Signature: (std::filesystem::path const& ir_file_path, string const& orig_file_id,
* size_t begin_message_ix, size_t end_message_ix, bool is_last_ir_chunk) -> bool;
* size_t begin_message_ix, size_t end_message_ix, bool is_last_chunk) -> bool;
* The function returns whether it succeeded.
* @param archive_reader
* @param file_metadata_ix
Expand Down
2 changes: 1 addition & 1 deletion components/core/src/clp/clp/decompression.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -282,7 +282,7 @@ bool decompress_to_ir(CommandLineArguments& command_line_args) {
string const& orig_file_id,
size_t begin_message_ix,
size_t end_message_ix,
[[maybe_unused]] bool is_last_ir_chunk) {
[[maybe_unused]] bool is_last_chunk) {
auto dest_ir_file_name = orig_file_id;
dest_ir_file_name += "_" + std::to_string(begin_message_ix);
dest_ir_file_name += "_" + std::to_string(end_message_ix);
Expand Down
2 changes: 1 addition & 1 deletion components/core/src/clp_s/JsonConstructor.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ void JsonConstructor::construct_in_order() {
last_idx
),
bsoncxx::builder::basic::kvp(
constants::results_cache::decompression::cIsLastIrChunk,
constants::results_cache::decompression::cIsLastChunk,
false == open_new_writer
)
)));
Expand Down
2 changes: 1 addition & 1 deletion components/core/src/clp_s/archive_constants.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ constexpr char cPath[]{"path"};
constexpr char cStreamId[]{"stream_id"};
constexpr char cBeginMsgIx[]{"begin_msg_ix"};
constexpr char cEndMsgIx[]{"end_msg_ix"};
constexpr char cIsLastIrChunk[]{"is_last_ir_chunk"};
constexpr char cIsLastChunk[]{"is_last_chunk"};
} // namespace results_cache::decompression

namespace results_cache::search {
Expand Down
2 changes: 1 addition & 1 deletion components/log-viewer-webui/client/src/api/query.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import axios from "axios";
* @property {string} stream_id
* @property {number} begin_msg_ix
* @property {number} end_msg_ix
* @property {boolean} is_last_ir_chunk
* @property {boolean} is_last_chunk
* @property {string} path
* @property {string} _id
*/
Expand Down

0 comments on commit 826138c

Please sign in to comment.