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

Method GetFieldByName

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

Source from the content-addressed store, hash-verified

1155}
1156
1157std::shared_ptr<Array> StructArray::GetFieldByName(const std::string& name) const {
1158 int i = struct_type()->GetFieldIndex(name);
1159 return i == -1 ? nullptr : field(i);
1160}
1161
1162Status StructArray::CanReferenceFieldByName(const std::string& name) const {
1163 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