Skip to content

Commit 04857b0

Browse files
committed
Minor rename
1 parent 91d5fc7 commit 04857b0

File tree

2 files changed

+4
-5
lines changed

2 files changed

+4
-5
lines changed

components/core/src/clp_s/JsonParser.cpp

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -463,8 +463,7 @@ bool JsonParser::parse() {
463463
}
464464

465465
// Add internal log_event_idx field to record
466-
auto log_event_idx
467-
= get_internal_field_id(constants::cLogEventIdxName, NodeType::Integer);
466+
auto log_event_idx = add_internal_field(constants::cLogEventIdxName, NodeType::Integer);
468467
m_current_parsed_message.add_value(
469468
log_event_idx,
470469
m_archive_writer->get_next_log_event_id()
@@ -530,7 +529,7 @@ bool JsonParser::parse() {
530529
return true;
531530
}
532531

533-
int32_t JsonParser::get_internal_field_id(std::string_view const field_name, NodeType type) {
532+
int32_t JsonParser::add_internal_field(std::string_view const field_name, NodeType type) {
534533
auto internal_subtree_id = m_archive_writer->add_node(
535534
constants::cRootNodeId,
536535
NodeType::Internal,

components/core/src/clp_s/JsonParser.hpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -96,12 +96,12 @@ class JsonParser {
9696
void split_archive();
9797

9898
/**
99-
* Gets the node ID for an internal field, and adds it to the schema tree if it does not exist.
99+
* Add an internal field to the MPT and get its Id.
100100
*
101101
* Note: this method should be called before parsing a record so that internal fields come first
102102
* in each table. This isn't strictly necessary, but it is a nice convention.
103103
*/
104-
int32_t get_internal_field_id(std::string_view const field_name, NodeType type);
104+
int32_t add_internal_field(std::string_view const field_name, NodeType type);
105105

106106
int m_num_messages;
107107
std::vector<std::string> m_file_paths;

0 commit comments

Comments
 (0)