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

Method AppendNulls

cpp/src/arrow/array/builder_binary.h:107–115  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

105 }
106
107 Status AppendNulls(int64_t length) final {
108 const int64_t num_bytes = value_data_builder_.length();
109 ARROW_RETURN_NOT_OK(Reserve(length));
110 for (int64_t i = 0; i < length; ++i) {
111 offsets_builder_.UnsafeAppend(static_cast<offset_type>(num_bytes));
112 }
113 UnsafeAppendToBitmap(length, false);
114 return Status::OK();
115 }
116
117 Status AppendNull() final {
118 ARROW_RETURN_NOT_OK(Reserve(1));

Callers

nothing calls this directly

Calls 5

UnsafeAppendToBitmapFunction · 0.85
ReserveFunction · 0.70
OKFunction · 0.50
lengthMethod · 0.45
UnsafeAppendMethod · 0.45

Tested by

no test coverage detected