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

Method reserve

cpp/src/arrow/util/key_value_metadata.cc:160–165  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

158bool KeyValueMetadata::Contains(std::string_view key) const { return FindKey(key) >= 0; }
159
160void KeyValueMetadata::reserve(int64_t n) {
161 DCHECK_GE(n, 0);
162 const auto m = static_cast<size_t>(n);
163 keys_.reserve(m);
164 values_.reserve(m);
165}
166
167int64_t KeyValueMetadata::size() const {
168 DCHECK_EQ(keys_.size(), values_.size());

Callers 15

test_reserveMethod · 0.45
test_reserveMethod · 0.45
GetStructTypeMethod · 0.45
VisitMethod · 0.45
TEST_FFunction · 0.45
TestRandomInputFunction · 0.45
fieldsMethod · 0.45
ConcatenateTablesFunction · 0.45
PromoteTableToSchemaFunction · 0.45

Calls

no outgoing calls