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

Function UniqueFinalize

cpp/src/arrow/compute/kernels/vector_hash.cc:610–616  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

608}
609
610Status UniqueFinalize(KernelContext* ctx, std::vector<Datum>* out) {
611 auto hash_impl = checked_cast<HashKernel*>(ctx->state());
612 std::shared_ptr<ArrayData> uniques;
613 RETURN_NOT_OK(hash_impl->GetDictionary(&uniques));
614 *out = {Datum(uniques)};
615 return Status::OK();
616}
617
618Status DictEncodeFinalize(KernelContext* ctx, std::vector<Datum>* out) {
619 auto hash_impl = checked_cast<HashKernel*>(ctx->state());

Callers 1

UniqueFinalizeDictionaryFunction · 0.85

Calls 4

DatumClass · 0.50
OKFunction · 0.50
stateMethod · 0.45
GetDictionaryMethod · 0.45

Tested by

no test coverage detected