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

Function UniqueFinalize

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

Source from the content-addressed store, hash-verified

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