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

Method AppendRunEnd

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

Source from the content-addressed store, hash-verified

317}
318
319Status RunEndEncodedBuilder::AppendRunEnd(int64_t run_end) {
320 switch (type_->run_end_type()->id()) {
321 case Type::INT16:
322 RETURN_NOT_OK(DoAppendRunEnd<int16_t>(run_end));
323 break;
324 case Type::INT32:
325 RETURN_NOT_OK(DoAppendRunEnd<int32_t>(run_end));
326 break;
327 case Type::INT64:
328 RETURN_NOT_OK(DoAppendRunEnd<int64_t>(run_end));
329 break;
330 default:
331 return Status::Invalid("Invalid type for run ends array: ", type_->run_end_type());
332 }
333 return Status::OK();
334}
335
336Status RunEndEncodedBuilder::CloseRun(int64_t run_length) {
337 // TODO(felipecrv): gracefully fragment runs bigger than INT32_MAX

Callers

nothing calls this directly

Calls 3

InvalidFunction · 0.50
OKFunction · 0.50
idMethod · 0.45

Tested by

no test coverage detected