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

Function AppendNulls

cpp/src/arrow/array/builder_primitive.h:495–508  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

493 using value_type = bool;
494
495 explicit BooleanBuilder(MemoryPool* pool = default_memory_pool(),
496 int64_t alignment = kDefaultBufferAlignment);
497
498 BooleanBuilder(const std::shared_ptr<DataType>& type,
499 MemoryPool* pool = default_memory_pool(),
500 int64_t alignment = kDefaultBufferAlignment);
501
502 /// Write nulls as uint8_t* (0 value indicates null) into pre-allocated memory
503 Status AppendNulls(int64_t length) final {
504 ARROW_RETURN_NOT_OK(Reserve(length));
505 data_builder_.UnsafeAppend(length, false);
506 UnsafeSetNull(length);
507 return Status::OK();
508 }
509
510 Status AppendNull() final {
511 ARROW_RETURN_NOT_OK(Reserve(1));

Callers 3

AppendNullFunction · 0.70
AppendEmptyValuesFunction · 0.70
AppendArraySliceFunction · 0.70

Calls 4

default_memory_poolFunction · 0.85
ReserveFunction · 0.70
OKFunction · 0.50
UnsafeAppendMethod · 0.45

Tested by

no test coverage detected