File tree Expand file tree Collapse file tree 2 files changed +4
-5
lines changed
components/core/src/clp_s Expand file tree Collapse file tree 2 files changed +4
-5
lines changed Original file line number Diff line number Diff line change @@ -463,8 +463,7 @@ bool JsonParser::parse() {
463
463
}
464
464
465
465
// 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);
468
467
m_current_parsed_message.add_value (
469
468
log_event_idx,
470
469
m_archive_writer->get_next_log_event_id ()
@@ -530,7 +529,7 @@ bool JsonParser::parse() {
530
529
return true ;
531
530
}
532
531
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) {
534
533
auto internal_subtree_id = m_archive_writer->add_node (
535
534
constants::cRootNodeId,
536
535
NodeType::Internal,
Original file line number Diff line number Diff line change @@ -96,12 +96,12 @@ class JsonParser {
96
96
void split_archive ();
97
97
98
98
/* *
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 .
100
100
*
101
101
* Note: this method should be called before parsing a record so that internal fields come first
102
102
* in each table. This isn't strictly necessary, but it is a nice convention.
103
103
*/
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);
105
105
106
106
int m_num_messages;
107
107
std::vector<std::string> m_file_paths;
You can’t perform that action at this time.
0 commit comments