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

Method GetColumnByName

cpp/src/arrow/record_batch.cc:57–60  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

55}
56
57std::shared_ptr<Array> RecordBatch::GetColumnByName(const std::string& name) const {
58 auto i = schema_->GetFieldIndex(name);
59 return i == -1 ? NULLPTR : column(i);
60}
61
62int RecordBatch::num_columns() const { return schema_->num_fields(); }
63

Callers 15

TEST_PFunction · 0.80
ReadNextMethod · 0.80
LoadInfoFromServerMethod · 0.80
TESTFunction · 0.80
TEST_PFunction · 0.80
TestSegmentKeyFunction · 0.80
TestSingleSegmentScalarFunction · 0.80
TestSingleSegmentKeyFunction · 0.80
TestSchemaResolutionFunction · 0.80

Calls 1

GetFieldIndexMethod · 0.45

Tested by 10

TEST_PFunction · 0.64
TESTFunction · 0.64
TEST_PFunction · 0.64
TestSegmentKeyFunction · 0.64
TestSingleSegmentScalarFunction · 0.64
TestSingleSegmentKeyFunction · 0.64
TestSchemaResolutionFunction · 0.64
CompareJsonFunction · 0.64
ComparatorMethod · 0.64