5
5
6
6
#include < queue>
7
7
#include < string>
8
+ #include < string_view>
8
9
9
10
#include < mongocxx/client.hpp>
10
11
#include < mongocxx/collection.hpp>
@@ -29,14 +30,14 @@ class OutputHandler {
29
30
// Methods
30
31
/* *
31
32
* Adds a query result to a batch or sends it to the destination.
32
- * @param original_path The original path of the file input log event belongs to.
33
- * @param original_path The original id of the file input log event belongs to.
33
+ * @param orig_file_path The original path of the file that input log event belongs to.
34
+ * @param orig_file_id The original id of the file that input log event belongs to.
34
35
* @param encoded_message The encoded log event
35
- * @param decompressed_message The content of the log event.
36
+ * @param decompressed_message The decompressed log event.
36
37
* @return ErrorCode_Success if the result was added successfully, an error code otherwise.
37
38
*/
38
39
virtual ErrorCode add_result (
39
- std::string_view original_path ,
40
+ std::string_view orig_file_path ,
40
41
std::string_view orig_file_id,
41
42
streaming_archive::reader::Message const & encoded_message,
42
43
std::string_view decompressed_message
@@ -87,13 +88,9 @@ class NetworkOutputHandler : public OutputHandler {
87
88
// Methods inherited from Client
88
89
/* *
89
90
* Sends a result to the network destination.
90
- * @param original_path The original path of the file input log event belongs to.
91
- * @param original_path The original id of the file input log event belongs to.
92
- * @param encoded_message The encoded log event
93
- * @param message The content of the log event.
94
91
*/
95
92
ErrorCode add_result (
96
- std::string_view original_path ,
93
+ std::string_view orig_file_path ,
97
94
std::string_view orig_file_id,
98
95
streaming_archive::reader::Message const & encoded_message,
99
96
std::string_view decompressed_message
@@ -172,14 +169,10 @@ class ResultsCacheOutputHandler : public OutputHandler {
172
169
// Methods inherited from OutputHandler
173
170
/* *
174
171
* Adds a result to the batch.
175
- * @param original_path The original path of the file input log event belongs to.
176
- * @param original_path The original id of the file input log event belongs to.
177
- * @param encoded_message The encoded log event
178
- * @param message The content of the log event.
179
- * @return
172
+ * @return ErrorCode_Success
180
173
*/
181
174
ErrorCode add_result (
182
- std::string_view original_path ,
175
+ std::string_view orig_file_path ,
183
176
std::string_view orig_file_id,
184
177
streaming_archive::reader::Message const & encoded_message,
185
178
std::string_view decompressed_message
@@ -234,16 +227,8 @@ class CountOutputHandler : public OutputHandler {
234
227
explicit CountOutputHandler (int reducer_socket_fd);
235
228
236
229
// Methods inherited from OutputHandler
237
- /* *
238
- * Adds a result.
239
- * @param original_path The original path of the file input log event belongs to.
240
- * @param original_path The original id of the file input log event belongs to.
241
- * @param encoded_message The encoded log event
242
- * @param message The content of the log event.
243
- * @return Errorcode
244
- */
245
230
ErrorCode add_result (
246
- std::string_view original_path ,
231
+ std::string_view orig_file_path ,
247
232
std::string_view orig_file_id,
248
233
streaming_archive::reader::Message const & encoded_message,
249
234
std::string_view decompressed_message
@@ -274,7 +259,7 @@ class CountByTimeOutputHandler : public OutputHandler {
274
259
275
260
// Methods inherited from OutputHandler
276
261
ErrorCode add_result (
277
- std::string_view original_path ,
262
+ std::string_view orig_file_path ,
278
263
std::string_view orig_file_id,
279
264
streaming_archive::reader::Message const & encoded_message,
280
265
std::string_view decompressed_message
0 commit comments