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

Method Append

cpp/src/arrow/array/builder_dict.h:268–277  ·  view source on GitHub ↗

\brief Append a scalar value

Source from the content-addressed store, hash-verified

266
267 /// \brief Append a scalar value
268 Status Append(Value value) {
269 ARROW_RETURN_NOT_OK(Reserve(1));
270
271 int32_t memo_index;
272 ARROW_RETURN_NOT_OK(memo_table_->GetOrInsert<T>(value, &memo_index));
273 ARROW_RETURN_NOT_OK(indices_builder_.Append(memo_index));
274 length_ += 1;
275
276 return Status::OK();
277 }
278
279 /// \brief Append a fixed-width string (only for FixedSizeBinaryType)
280 template <typename T1 = T>

Callers

nothing calls this directly

Calls 6

ToBytesMethod · 0.80
ReserveFunction · 0.70
AppendFunction · 0.70
OKFunction · 0.50
dataMethod · 0.45
sizeMethod · 0.45

Tested by

no test coverage detected