MCPcopy Create free account
hub / github.com/apache/arrow / CheckAndAddInputFieldDescriptor

Method CheckAndAddInputFieldDescriptor

cpp/src/gandiva/annotator.cc:27–37  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

25namespace gandiva {
26
27FieldDescriptorPtr Annotator::CheckAndAddInputFieldDescriptor(FieldPtr field) {
28 // If the field is already in the map, return the entry.
29 auto found = in_name_to_desc_.find(field->name());
30 if (found != in_name_to_desc_.end()) {
31 return found->second;
32 }
33
34 auto desc = MakeDesc(field, false /*is_output*/);
35 in_name_to_desc_[field->name()] = desc;
36 return desc;
37}
38
39FieldDescriptorPtr Annotator::AddOutputFieldDescriptor(FieldPtr field) {
40 auto desc = MakeDesc(field, true /*is_output*/);

Callers 3

TEST_FFunction · 0.80
VisitMethod · 0.80
TEST_FFunction · 0.80

Calls 3

findMethod · 0.45
nameMethod · 0.45
endMethod · 0.45

Tested by 2

TEST_FFunction · 0.64
TEST_FFunction · 0.64