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

Method Append

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

\brief Append a scalar value

Source from the content-addressed store, hash-verified

258
259 /// \brief Append a scalar value
260 Status Append(Value value) {
261 ARROW_RETURN_NOT_OK(Reserve(1));
262
263 int32_t memo_index;
264 ARROW_RETURN_NOT_OK(memo_table_->GetOrInsert<T>(value, &memo_index));
265 ARROW_RETURN_NOT_OK(indices_builder_.Append(memo_index));
266 length_ += 1;
267
268 return Status::OK();
269 }
270
271 /// \brief Append a fixed-width string (only for FixedSizeBinaryType)
272 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