diff --git a/src/clp_ffi_js/ir/StreamReader.cpp b/src/clp_ffi_js/ir/StreamReader.cpp index 48d652ff..0359000f 100644 --- a/src/clp_ffi_js/ir/StreamReader.cpp +++ b/src/clp_ffi_js/ir/StreamReader.cpp @@ -148,8 +148,8 @@ EMSCRIPTEN_BINDINGS(ClpStreamReader) { .function("deserializeStream", &clp_ffi_js::ir::StreamReader::deserialize_stream) .function("decodeRange", &clp_ffi_js::ir::StreamReader::decode_range) .function( - "findNearestLogEventIdxByTimestamp", - &clp_ffi_js::ir::StreamReader::find_nearest_log_event_idx_by_timestamp + "findNearestLogEventByTimestamp", + &clp_ffi_js::ir::StreamReader::find_nearest_log_event_by_timestamp ); } } // namespace diff --git a/src/clp_ffi_js/ir/StreamReader.hpp b/src/clp_ffi_js/ir/StreamReader.hpp index 232c0be2..50fbc277 100644 --- a/src/clp_ffi_js/ir/StreamReader.hpp +++ b/src/clp_ffi_js/ir/StreamReader.hpp @@ -140,7 +140,7 @@ class StreamReader { * @param target_ts * @return The index of the log event L. */ - [[nodiscard]] virtual auto find_nearest_log_event_idx_by_timestamp( + [[nodiscard]] virtual auto find_nearest_log_event_by_timestamp( clp::ir::epoch_time_ms_t target_ts ) -> NullableLogEventIdx = 0; @@ -194,15 +194,15 @@ class StreamReader { ) -> void; /** - * Templated implementation of `find_nearest_log_event_idx_by_timestamp`. + * Templated implementation of `find_nearest_log_event_by_timestamp`. * * @tparam LogEvent * @param log_events * @param target_ts - * @return See `find_nearest_log_event_idx_by_timestamp`. + * @return See `find_nearest_log_event_by_timestamp`. */ template - auto generic_find_nearest_log_event_idx_by_timestamp( + auto generic_find_nearest_log_event_by_timestamp( LogEvents const& log_events, clp::ir::epoch_time_ms_t target_ts ) -> NullableLogEventIdx; @@ -294,7 +294,7 @@ auto StreamReader::generic_filter_log_events( } template -auto StreamReader::generic_find_nearest_log_event_idx_by_timestamp( +auto StreamReader::generic_find_nearest_log_event_by_timestamp( LogEvents const& log_events, clp::ir::epoch_time_ms_t target_ts ) -> NullableLogEventIdx { diff --git a/src/clp_ffi_js/ir/StructuredIrStreamReader.cpp b/src/clp_ffi_js/ir/StructuredIrStreamReader.cpp index b7997d19..47a47732 100644 --- a/src/clp_ffi_js/ir/StructuredIrStreamReader.cpp +++ b/src/clp_ffi_js/ir/StructuredIrStreamReader.cpp @@ -148,10 +148,10 @@ auto StructuredIrStreamReader::decode_range(size_t begin_idx, size_t end_idx, bo ); } -auto StructuredIrStreamReader::find_nearest_log_event_idx_by_timestamp( +auto StructuredIrStreamReader::find_nearest_log_event_by_timestamp( clp::ir::epoch_time_ms_t const target_ts ) -> NullableLogEventIdx { - return generic_find_nearest_log_event_idx_by_timestamp(*m_deserialized_log_events, target_ts); + return generic_find_nearest_log_event_by_timestamp(*m_deserialized_log_events, target_ts); } StructuredIrStreamReader::StructuredIrStreamReader( diff --git a/src/clp_ffi_js/ir/StructuredIrStreamReader.hpp b/src/clp_ffi_js/ir/StructuredIrStreamReader.hpp index cf1c0179..0d48aee0 100644 --- a/src/clp_ffi_js/ir/StructuredIrStreamReader.hpp +++ b/src/clp_ffi_js/ir/StructuredIrStreamReader.hpp @@ -75,7 +75,7 @@ class StructuredIrStreamReader : public StreamReader { [[nodiscard]] auto decode_range(size_t begin_idx, size_t end_idx, bool use_filter) const -> DecodedResultsTsType override; - [[nodiscard]] auto find_nearest_log_event_idx_by_timestamp(clp::ir::epoch_time_ms_t target_ts + [[nodiscard]] auto find_nearest_log_event_by_timestamp(clp::ir::epoch_time_ms_t target_ts ) -> NullableLogEventIdx override; private: diff --git a/src/clp_ffi_js/ir/UnstructuredIrStreamReader.cpp b/src/clp_ffi_js/ir/UnstructuredIrStreamReader.cpp index 0f288d5b..7b4c1cf3 100644 --- a/src/clp_ffi_js/ir/UnstructuredIrStreamReader.cpp +++ b/src/clp_ffi_js/ir/UnstructuredIrStreamReader.cpp @@ -158,10 +158,10 @@ auto UnstructuredIrStreamReader::decode_range(size_t begin_idx, size_t end_idx, ); } -auto UnstructuredIrStreamReader::find_nearest_log_event_idx_by_timestamp( +auto UnstructuredIrStreamReader::find_nearest_log_event_by_timestamp( clp::ir::epoch_time_ms_t const target_ts ) -> NullableLogEventIdx { - return generic_find_nearest_log_event_idx_by_timestamp(m_encoded_log_events, target_ts); + return generic_find_nearest_log_event_by_timestamp(m_encoded_log_events, target_ts); } UnstructuredIrStreamReader::UnstructuredIrStreamReader( diff --git a/src/clp_ffi_js/ir/UnstructuredIrStreamReader.hpp b/src/clp_ffi_js/ir/UnstructuredIrStreamReader.hpp index a22d168c..f9ece434 100644 --- a/src/clp_ffi_js/ir/UnstructuredIrStreamReader.hpp +++ b/src/clp_ffi_js/ir/UnstructuredIrStreamReader.hpp @@ -71,7 +71,7 @@ class UnstructuredIrStreamReader : public StreamReader { [[nodiscard]] auto decode_range(size_t begin_idx, size_t end_idx, bool use_filter) const -> DecodedResultsTsType override; - [[nodiscard]] auto find_nearest_log_event_idx_by_timestamp(clp::ir::epoch_time_ms_t target_ts + [[nodiscard]] auto find_nearest_log_event_by_timestamp(clp::ir::epoch_time_ms_t target_ts ) -> NullableLogEventIdx override; private: