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

Method ExtendCurrent

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

Extend the last appended value by appending more data at the end Unlike Append, this does not create a new offset.

Source from the content-addressed store, hash-verified

92 ///
93 /// Unlike Append, this does not create a new offset.
94 Status ExtendCurrent(const uint8_t* value, offset_type length) {
95 // Safety check for UBSAN.
96 if (ARROW_PREDICT_TRUE(length > 0)) {
97 ARROW_RETURN_NOT_OK(ValidateOverflow(length));
98 ARROW_RETURN_NOT_OK(value_data_builder_.Append(value, length));
99 }
100 return Status::OK();
101 }
102
103 Status ExtendCurrent(std::string_view value) {
104 ARROW_RETURN_NOT_OK(ValidateOverflow(static_cast<int64_t>(value.size())));

Callers 2

TestExtendCurrentMethod · 0.80
TESTFunction · 0.80

Calls 5

ValidateOverflowFunction · 0.70
OKFunction · 0.50
AppendMethod · 0.45
sizeMethod · 0.45
dataMethod · 0.45

Tested by 2

TestExtendCurrentMethod · 0.64
TESTFunction · 0.64