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

Method Append

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

\brief Append a scalar value

Source from the content-addressed store, hash-verified

277
278 /// \brief Append a scalar value
279 Status Append(Value value) {
280 ARROW_RETURN_NOT_OK(Reserve(1));
281
282 int32_t memo_index;
283 ARROW_RETURN_NOT_OK(memo_table_->GetOrInsert<T>(value, &memo_index));
284 ARROW_RETURN_NOT_OK(indices_builder_.Append(memo_index));
285 length_ += 1;
286
287 return Status::OK();
288 }
289
290 /// \brief Append a fixed-width string (only for FixedSizeBinaryType)
291 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