18 #include "scanner/api/sink.h" 19 #include "scanner/engine/runtime.h" 20 #include "scanner/engine/sink_factory.h" 21 #include "scanner/util/common.h" 22 #include "scanner/util/queue.h" 23 #include "scanner/util/storehouse.h" 24 #include "scanner/util/thread_pool.h" 32 const std::vector<std::map<i32, std::vector<u8>>>& sink_args;
34 const std::vector<std::map<i32, i64>>& column_sink_to_table_ids;
38 storehouse::StorageConfig* storage_config;
39 std::vector<SinkFactory*> sink_factories;
40 std::vector<SinkConfig> sink_configs;
41 std::vector<i32> sink_op_idxs;
43 proto::Result& result;
53 void new_task(i32 job_id, i32 task_id, std::vector<ColumnType> column_types);
61 const std::vector<std::map<i32, std::vector<u8>>>& sink_args_;
62 const std::vector<std::map<i32, i64>>& column_sink_to_table_ids_;
65 std::vector<i32> sink_op_idx_;
66 std::vector<SinkConfig> sink_configs_;
67 std::vector<std::unique_ptr<Sink>> sinks_;
70 ThreadPool thread_pool_;
74 bool needs_configure_;
77 i64 current_work_item_;
79 i64 total_work_items_;
Definition: save_worker.h:46
Definition: save_worker.h:29
Definition: profiler.h:40
Definition: database.cpp:36