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

Method FinishWithDictOffset

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

Source from the content-addressed store, hash-verified

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

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