MCPcopy Create free account
hub / github.com/alibaba/zvec / text

Method text

src/db/sqlengine/parser/node.cc:95–110  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

93}
94
95std::string Node::text() const {
96 std::stringstream stream;
97 switch (type_) {
98 case NodeType::LOGIC_EXPR:
99 stream << "(" << left()->text() << ") " << op_name() << " ("
100 << right()->text() << ")";
101 break;
102 case NodeType::REL_EXPR:
103 stream << left()->text() << op_name() << right()->text();
104 break;
105 default:
106 break;
107 }
108
109 return stream.str();
110}
111
112std::string Node::to_string() {
113 return text();

Callers 15

parse_fts_queryMethod · 0.45
ratio_ruleMethod · 0.45
apply_optimize_resultMethod · 0.45
convert_node_to_valueFunction · 0.45
to_arrow_string_arrayFunction · 0.45
to_arrow_bool_arrayFunction · 0.45
create_filter_nodeMethod · 0.45
parse_filterMethod · 0.45
exec_invert_cond_nodeMethod · 0.45
to_stringMethod · 0.45
to_stringMethod · 0.45

Calls

no outgoing calls

Tested by 5

TESTFunction · 0.36
TEST_FFunction · 0.36
TEST_FFunction · 0.36
TESTFunction · 0.36
invert_ruleMethod · 0.36