1 #include "ypc/corecommon/package.h"
2 #include "ypc/stbox/ebyte.h"
3 #include "ypc/stbox/stx_common.h"
4 #ifdef EXAMPLE_FM_NORMAL
5 #include <glog/logging.h>
8 #include "ypc/core_t/analyzer/data_source.h"
9 #include "ypc/stbox/tsgx/log.h"
10 typedef stbox::bytes bytes;
12 #include "user_type.h"
13 #include "ypc/corecommon/data_source.h"
14 #include "ypc/corecommon/to_type.h"
15 #include <hpda/extractor/raw_data.h>
16 #include <hpda/output/memory_output.h>
17 #include <hpda/processor/query/filter.h>
20 define_nt(input_buf, std::string);
21 typedef ff::net::ntpackage<0, input_buf> input_buf_t;
28 inline bytes do_parse(
const bytes ¶m) {
29 LOG(INFO) <<
"do parse";
35 &converter, [&](
const user_item_t &v) {
37 std::string zjhm = v.get<ZJHM>();
38 if (zjhm == pkg.get<input_buf>()) {
45 mo.get_engine()->run();
46 LOG(INFO) <<
"do parse done";
49 for (
auto it : mo.values()) {
50 stbox::printf(
"found\n");
51 result += it.get<XM>();
53 result += it.get<ZJHM>();
59 inline bool merge_parse_result(
const std::vector<bytes> &block_result,
60 const bytes ¶m, bytes &result) {
62 for (
auto k : block_result) {