18 #include "scanner/api/op.h" 19 #include "scanner/util/common.h" 28 OpInfo(
const std::string& name,
bool variadic_inputs,
29 const std::vector<Column>& input_columns,
30 const std::vector<Column>& output_columns,
bool can_stencil,
31 const std::vector<i32> preferred_stencil,
bool bounded_state,
32 i32 warmup,
bool unbounded_state,
const std::string& protobuf_name,
33 const std::string& stream_protobuf_name)
35 variadic_inputs_(variadic_inputs),
36 input_columns_(input_columns),
37 output_columns_(output_columns),
38 can_stencil_(can_stencil),
39 preferred_stencil_(preferred_stencil),
40 bounded_state_(bounded_state),
42 unbounded_state_(unbounded_state),
43 protobuf_name_(protobuf_name),
44 stream_protobuf_name_(stream_protobuf_name) {}
46 const std::string& name()
const {
return name_; }
48 const bool variadic_inputs()
const {
return variadic_inputs_; }
50 const std::vector<Column>& input_columns()
const {
return input_columns_; }
52 const std::vector<Column>& output_columns()
const {
return output_columns_; }
54 const bool can_stencil()
const {
return can_stencil_; }
56 const std::vector<i32>& preferred_stencil()
const {
57 return preferred_stencil_;
60 const bool has_bounded_state()
const {
return bounded_state_; }
62 const i32 warmup()
const {
66 const bool has_unbounded_state()
const {
return unbounded_state_; }
68 const std::string& protobuf_name()
const {
return protobuf_name_; }
70 const std::string& stream_protobuf_name()
const {
return stream_protobuf_name_; }
74 bool variadic_inputs_;
75 std::vector<Column> input_columns_;
76 std::vector<Column> output_columns_;
78 std::vector<i32> preferred_stencil_;
81 bool unbounded_state_;
82 std::string protobuf_name_;
83 std::string stream_protobuf_name_;
Definition: database.cpp:36