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

Method CommitPendingData

cpp/src/arrow/array/builder_adaptive.cc:155–166  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

153}
154
155Status AdaptiveIntBuilder::CommitPendingData() {
156 if (pending_pos_ == 0) {
157 return Status::OK();
158 }
159 RETURN_NOT_OK(Reserve(pending_pos_));
160 const uint8_t* valid_bytes = pending_has_nulls_ ? pending_valid_ : nullptr;
161 RETURN_NOT_OK(AppendValuesInternal(reinterpret_cast<const int64_t*>(pending_data_),
162 pending_pos_, valid_bytes));
163 pending_has_nulls_ = false;
164 pending_pos_ = 0;
165 return Status::OK();
166}
167
168static constexpr int64_t kAdaptiveIntChunkSize = 8192;
169

Callers

nothing calls this directly

Calls 2

ReserveFunction · 0.70
OKFunction · 0.50

Tested by

no test coverage detected