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

Method EnsureAllocated

cpp/src/arrow/compute/exec.cc:546–553  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

544 }
545
546 Status EnsureAllocated() {
547 if (bitmap_preallocated_) {
548 return Status::OK();
549 }
550 ARROW_ASSIGN_OR_RAISE(output_->buffers[0], ctx_->AllocateBitmap(output_->length));
551 bitmap_ = output_->buffers[0]->mutable_data();
552 return Status::OK();
553 }
554
555 Status AllNullShortCircuit() {
556 // OK, the output should be all null

Callers

nothing calls this directly

Calls 4

AllocateBitmapMethod · 0.80
OKFunction · 0.50
ARROW_ASSIGN_OR_RAISEFunction · 0.50
mutable_dataMethod · 0.45

Tested by

no test coverage detected