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

Function UniqueFinalizeDictionary

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

Source from the content-addressed store, hash-verified

664}
665
666Status UniqueFinalizeDictionary(KernelContext* ctx, std::vector<Datum>* out) {
667 RETURN_NOT_OK(UniqueFinalize(ctx, out));
668 auto hash = checked_cast<DictionaryHashKernel*>(ctx->state());
669 ARROW_ASSIGN_OR_RAISE((*out)[0].mutable_array()->dictionary,
670 EnsureHashDictionary(ctx, hash));
671 return Status::OK();
672}
673
674Status ValueCountsFinalizeDictionary(KernelContext* ctx, std::vector<Datum>* out) {
675 auto hash = checked_cast<DictionaryHashKernel*>(ctx->state());

Callers

nothing calls this directly

Calls 5

UniqueFinalizeFunction · 0.85
EnsureHashDictionaryFunction · 0.85
ARROW_ASSIGN_OR_RAISEFunction · 0.50
OKFunction · 0.50
stateMethod · 0.45

Tested by

no test coverage detected