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

Method GetColumnByName

cpp/src/arrow/record_batch.cc:58–61  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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

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