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

Method Append

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

Source from the content-addressed store, hash-verified

67 : BaseBinaryBuilder(pool) {}
68
69 Status Append(const uint8_t* value, offset_type length) {
70 ARROW_RETURN_NOT_OK(Reserve(1));
71 UnsafeAppendNextOffset();
72 // Safety check for UBSAN.
73 if (ARROW_PREDICT_TRUE(length > 0)) {
74 ARROW_RETURN_NOT_OK(ValidateOverflow(length));
75 ARROW_RETURN_NOT_OK(value_data_builder_.Append(value, length));
76 }
77
78 UnsafeAppendToBitmap(true);
79 return Status::OK();
80 }
81
82 Status Append(const char* value, offset_type length) {
83 return Append(reinterpret_cast<const uint8_t*>(value), length);

Callers 3

ExtendCurrentMethod · 0.45
AppendNextOffsetMethod · 0.45
AppendFunction · 0.45

Calls 7

UnsafeAppendToBitmapFunction · 0.85
ReserveFunction · 0.70
ValidateOverflowFunction · 0.70
AppendFunction · 0.70
OKFunction · 0.50
dataMethod · 0.45
sizeMethod · 0.45

Tested by

no test coverage detected