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

Method AppendNulls

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

Source from the content-addressed store, hash-verified

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