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

Method FinishWithDictOffset

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

Source from the content-addressed store, hash-verified

536 }
537
538 Status FinishWithDictOffset(int64_t dict_offset,
539 std::shared_ptr<ArrayData>* out_indices,
540 std::shared_ptr<ArrayData>* out_dictionary) {
541 // Finalize indices array
542 ARROW_RETURN_NOT_OK(indices_builder_.FinishInternal(out_indices));
543
544 // Generate dictionary array from hash table contents
545 ARROW_RETURN_NOT_OK(memo_table_->GetArrayData(dict_offset, out_dictionary));
546 delta_offset_ = memo_table_->size();
547
548 // Update internals for further uses of this DictionaryBuilder
549 ArrayBuilder::Reset();
550 return Status::OK();
551 }
552
553 std::unique_ptr<DictionaryMemoTable> memo_table_;
554

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