From 072c7bc2398657c96c3460f08f87a29b674eb1ee Mon Sep 17 00:00:00 2001 From: Junhao Liao Date: Thu, 7 Nov 2024 18:31:20 -0500 Subject: [PATCH] Rename parsed_tree_node_id_t -> schema_tree_node_id_t. --- src/clp_ffi_js/ir/StructuredIrStreamReader.hpp | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/src/clp_ffi_js/ir/StructuredIrStreamReader.hpp b/src/clp_ffi_js/ir/StructuredIrStreamReader.hpp index 56b337da..764e8663 100644 --- a/src/clp_ffi_js/ir/StructuredIrStreamReader.hpp +++ b/src/clp_ffi_js/ir/StructuredIrStreamReader.hpp @@ -21,7 +21,7 @@ #include namespace clp_ffi_js::ir { -using parsed_tree_node_id_t = std::optional; +using schema_tree_node_id_t = std::optional; /** * Class that implements the `clp::ffi::ir_stream::IrUnitHandlerInterface` to buffer log events and @@ -104,14 +104,14 @@ class IrUnitHandler { /** * @return The schema-tree node ID associated with events' authoritative log-level key. */ - [[nodiscard]] auto get_level_node_id() const -> parsed_tree_node_id_t { + [[nodiscard]] auto get_level_node_id() const -> schema_tree_node_id_t { return m_level_node_id; } /** * @return The schema-tree node ID associated with events' authoritative timestamp key. */ - [[nodiscard]] auto get_timestamp_node_id() const -> parsed_tree_node_id_t { + [[nodiscard]] auto get_timestamp_node_id() const -> schema_tree_node_id_t { return m_timestamp_node_id; } @@ -122,8 +122,8 @@ class IrUnitHandler { clp::ffi::SchemaTree::Node::id_t m_current_node_id{clp::ffi::SchemaTree::cRootId}; - parsed_tree_node_id_t m_level_node_id; - parsed_tree_node_id_t m_timestamp_node_id; + schema_tree_node_id_t m_level_node_id; + schema_tree_node_id_t m_timestamp_node_id; // TODO: Technically, we don't need to use a `shared_ptr` since the parent stream reader will // have a longer lifetime than this class. Instead, we could use `gsl::not_null` once we add @@ -198,8 +198,8 @@ class StructuredIrStreamReader : public StreamReader { std::shared_ptr> m_deserialized_log_events; std::unique_ptr> m_stream_reader_data_context; - parsed_tree_node_id_t m_level_node_id; - parsed_tree_node_id_t m_timestamp_node_id; + schema_tree_node_id_t m_level_node_id; + schema_tree_node_id_t m_timestamp_node_id; }; } // namespace clp_ffi_js::ir