@@ -193,34 +193,49 @@ class ArchiveWriter {
193193 int32_t add_schema (Schema const & schema) { return m_schema_map.add_schema (schema); }
194194
195195 /* *
196- * Ingests a timestamp entry from a string
196+ * Ingests a timestamp entry from a string.
197197 * @param key
198198 * @param node_id
199199 * @param timestamp
200- * @param pattern_id
201- * @return the epoch time corresponding to the string timestamp
200+ * @param is_json_literal
201+ * @return Forwards `TimestampDictionaryWriter::ingest_string_timestamp`'s return values.
202202 */
203- epochtime_t ingest_timestamp_entry (
203+ [[nodiscard]] auto ingest_string_timestamp (
204204 std::string_view key,
205205 int32_t node_id,
206206 std::string_view timestamp,
207- uint64_t & pattern_id
208- ) {
209- return m_timestamp_dict.ingest_entry (key, node_id, timestamp, pattern_id );
207+ bool is_json_literal
208+ ) -> std::pair<epochtime_t, uint64_t> {
209+ return m_timestamp_dict.ingest_string_timestamp (key, node_id, timestamp, is_json_literal );
210210 }
211211
212212 /* *
213- * Ingests a timestamp entry from a number
214- * @param column_key
213+ * Ingests a numeric JSON entry.
214+ * @param key
215215 * @param node_id
216216 * @param timestamp
217+ * @return Forwards `TimestampDictionaryWriter::ingest_numeric_json_timestamp`'s return values.
217218 */
218- void ingest_timestamp_entry (std::string_view key, int32_t node_id, double timestamp) {
219- m_timestamp_dict.ingest_entry (key, node_id, timestamp);
219+ [[nodiscard]] auto
220+ ingest_numeric_json_timestamp (std::string_view key, int32_t node_id, std::string_view timestamp)
221+ -> std::pair<epochtime_t , uint64_t > {
222+ return m_timestamp_dict.ingest_numeric_json_timestamp (key, node_id, timestamp);
220223 }
221224
222- void ingest_timestamp_entry (std::string_view key, int32_t node_id, int64_t timestamp) {
223- m_timestamp_dict.ingest_entry (key, node_id, timestamp);
225+ /* *
226+ * Ingests an unknown precision epoch timestamp.
227+ * @param key
228+ * @param node_id
229+ * @param timestamp
230+ * @return Forwards `TimestampDictionaryWriter::ingest_unknown_precision_epoch_timestamp`'s
231+ * return values.
232+ */
233+ [[nodiscard]] auto ingest_unknown_precision_epoch_timestamp (
234+ std::string_view key,
235+ int32_t node_id,
236+ int64_t timestamp
237+ ) -> std::pair<epochtime_t, uint64_t> {
238+ return m_timestamp_dict.ingest_unknown_precision_epoch_timestamp (key, node_id, timestamp);
224239 }
225240
226241 /* *
0 commit comments