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

Method FinishWithDictOffset

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

Source from the content-addressed store, hash-verified

558 }
559
560 Status FinishWithDictOffset(int64_t dict_offset,
561 std::shared_ptr<ArrayData>* out_indices,
562 std::shared_ptr<ArrayData>* out_dictionary) {
563 // Finalize indices array
564 ARROW_RETURN_NOT_OK(indices_builder_.FinishInternal(out_indices));
565
566 // Generate dictionary array from hash table contents
567 ARROW_RETURN_NOT_OK(memo_table_->GetArrayData(dict_offset, out_dictionary));
568 delta_offset_ = memo_table_->size();
569
570 // Update internals for further uses of this DictionaryBuilder
571 ArrayBuilder::Reset();
572 return Status::OK();
573 }
574
575 std::unique_ptr<DictionaryMemoTable> memo_table_;
576

Callers

nothing calls this directly

Calls 5

ResetFunction · 0.70
OKFunction · 0.50
FinishInternalMethod · 0.45
GetArrayDataMethod · 0.45
sizeMethod · 0.45

Tested by

no test coverage detected