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

Method AppendValues

cpp/src/arrow/array/builder_primitive.cc:78–87  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

76}
77
78Status BooleanBuilder::AppendValues(const uint8_t* values, int64_t length,
79 const uint8_t* valid_bytes) {
80 RETURN_NOT_OK(Reserve(length));
81
82 int64_t i = 0;
83 data_builder_.UnsafeAppend<false>(length,
84 [values, &i]() -> bool { return values[i++] != 0; });
85 ArrayBuilder::UnsafeAppendToBitmap(valid_bytes, length);
86 return Status::OK();
87}
88
89Status BooleanBuilder::AppendValues(const uint8_t* values, int64_t length,
90 const uint8_t* validity, int64_t offset) {

Callers

nothing calls this directly

Calls 7

UnsafeAppendToBitmapFunction · 0.85
ReserveFunction · 0.70
AppendValuesFunction · 0.70
OKFunction · 0.50
UnsafeAppendMethod · 0.45
sizeMethod · 0.45
dataMethod · 0.45

Tested by

no test coverage detected