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

Method GetFieldByName

cpp/src/arrow/array/array_nested.cc:1117–1120  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1115}
1116
1117std::shared_ptr<Array> StructArray::GetFieldByName(const std::string& name) const {
1118 int i = struct_type()->GetFieldIndex(name);
1119 return i == -1 ? nullptr : field(i);
1120}
1121
1122Status StructArray::CanReferenceFieldByName(const std::string& name) const {
1123 if (GetFieldByName(name) == nullptr) {

Callers 10

FromNamesMethod · 0.45
ParseFunction · 0.45
ExtractFieldFunction · 0.45
AssertParseColumnsFunction · 0.45
TESTFunction · 0.45
ValidateBasicStructArrayFunction · 0.45
TESTFunction · 0.45
CheckValueCountsNullFunction · 0.45

Calls 2

fieldFunction · 0.50
GetFieldIndexMethod · 0.45

Tested by 7

ParseFunction · 0.36
ExtractFieldFunction · 0.36
AssertParseColumnsFunction · 0.36
TESTFunction · 0.36
ValidateBasicStructArrayFunction · 0.36
TESTFunction · 0.36
CheckValueCountsNullFunction · 0.36