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

Method AppendEmpty

cpp/src/arrow/compute/row/row_internal.cc:394–405  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

392}
393
394Status RowTableImpl::AppendEmpty(uint32_t num_rows_to_append,
395 int64_t num_extra_bytes_to_append) {
396 RETURN_NOT_OK(ResizeFixedLengthBuffers(num_rows_to_append));
397 if (!metadata_.is_fixed_length) {
398 RETURN_NOT_OK(ResizeOptionalVaryingLengthBuffer(num_extra_bytes_to_append));
399 }
400 num_rows_ += num_rows_to_append;
401 if (metadata_.row_alignment > 1 || metadata_.string_alignment > 1) {
402 memset(rows_->mutable_data(), 0, bytes_capacity_);
403 }
404 return Status::OK();
405}
406
407bool RowTableImpl::has_any_nulls(const LightContext* ctx) const {
408 if (has_any_nulls_) {

Callers 2

PrepareForMergeMethod · 0.45
EncodeSelectedMethod · 0.45

Calls 2

OKFunction · 0.50
mutable_dataMethod · 0.45

Tested by

no test coverage detected