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

Function AppendNulls

cpp/src/arrow/array/builder_adaptive.h:51–59  ·  view source on GitHub ↗

\brief Append multiple nulls \param[in] length the number of nulls to append

Source from the content-addressed store, hash-verified

49 /// \brief Append multiple nulls
50 /// \param[in] length the number of nulls to append
51 Status AppendNulls(int64_t length) final {
52 ARROW_RETURN_NOT_OK(CommitPendingData());
53 if (ARROW_PREDICT_TRUE(length > 0)) {
54 ARROW_RETURN_NOT_OK(Reserve(length));
55 memset(data_->mutable_data() + length_ * int_size_, 0, int_size_ * length);
56 UnsafeSetNull(length);
57 }
58 return Status::OK();
59 }
60
61 Status AppendNull() final {
62 pending_data_[pending_pos_] = 0;

Callers

nothing calls this directly

Calls 3

ReserveFunction · 0.70
OKFunction · 0.50
mutable_dataMethod · 0.45

Tested by

no test coverage detected