18 #include "scanner/api/source.h" 19 #include "scanner/util/common.h" 33 const std::vector<Column>& output_columns,
34 const std::string& protobuf_name,
35 SourceConstructor constructor)
37 output_columns_(output_columns),
38 protobuf_name_(protobuf_name),
39 constructor_(constructor) {}
41 const std::string& get_name()
const {
return name_; }
43 const std::vector<Column>& output_columns()
const {
return output_columns_; }
45 const std::string& protobuf_name()
const {
return protobuf_name_; }
50 return constructor_(config);
55 std::vector<Column> output_columns_;
56 std::string protobuf_name_;
57 SourceConstructor constructor_;
Parameters provided at instantiation of Source node.
Definition: source.h:29
Interface for constructing Sources at runtime.
Definition: source_factory.h:30
Interface for reading data in a computation graph.
Definition: source.h:43
Definition: database.cpp:36