| 392 | } |
| 393 | |
| 394 | Status 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 | |
| 407 | bool RowTableImpl::has_any_nulls(const LightContext* ctx) const { |
| 408 | if (has_any_nulls_) { |
no test coverage detected