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

Method DoAppendRunEnd

cpp/src/arrow/array/builder_run_end.cc:308–317  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

306
307template <typename RunEndCType>
308Status RunEndEncodedBuilder::DoAppendRunEnd(int64_t run_end) {
309 constexpr auto max = std::numeric_limits<RunEndCType>::max();
310 if (ARROW_PREDICT_FALSE(run_end > max)) {
311 return Status::Invalid("Run end value must fit on run ends type but ", run_end, " > ",
312 max, ".");
313 }
314 return internal::checked_cast<typename CTypeTraits<RunEndCType>::BuilderType*>(
315 children_[0].get())
316 ->Append(static_cast<RunEndCType>(run_end));
317}
318
319Status RunEndEncodedBuilder::AppendRunEnd(int64_t run_end) {
320 switch (type_->run_end_type()->id()) {

Callers

nothing calls this directly

Calls 3

InvalidFunction · 0.50
AppendMethod · 0.45
getMethod · 0.45

Tested by

no test coverage detected