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

Method FinishDelta

cpp/src/arrow/array/builder_dict.h:495–504  ·  view source on GitHub ↗

\brief Return dictionary indices and a delta dictionary since the last time that Finish or FinishDelta were called, and reset state of builder (except the memo table)

Source from the content-addressed store, hash-verified

493 /// time that Finish or FinishDelta were called, and reset state of builder
494 /// (except the memo table)
495 Status FinishDelta(std::shared_ptr<Array>* out_indices,
496 std::shared_ptr<Array>* out_delta) {
497 std::shared_ptr<ArrayData> indices_data;
498 std::shared_ptr<ArrayData> delta_data;
499 ARROW_RETURN_NOT_OK(FinishWithDictOffset(delta_offset_, &indices_data, &delta_data));
500 indices_data->type = MaybeUnsignedIndexType(indices_data->type, use_unsigned_index_);
501 *out_indices = MakeArray(indices_data);
502 *out_delta = MakeArray(delta_data);
503 return Status::OK();
504 }
505
506 /// \cond FALSE
507 using ArrayBuilder::Finish;

Calls 3

MaybeUnsignedIndexTypeFunction · 0.85
MakeArrayFunction · 0.70
OKFunction · 0.50

Tested by 2

TYPED_TESTFunction · 0.64
TESTFunction · 0.64