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

Method GetDictionary

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

Source from the content-addressed store, hash-verified

421 Status FlushFinal(ExecResult* out) override { return action_.FlushFinal(out); }
422
423 Status GetDictionary(std::shared_ptr<ArrayData>* out) override {
424 std::shared_ptr<NullArray> null_array;
425 if (seen_null_) {
426 null_array = std::make_shared<NullArray>(1);
427 } else {
428 null_array = std::make_shared<NullArray>(0);
429 }
430 *out = null_array->data();
431 return Status::OK();
432 }
433
434 std::shared_ptr<DataType> value_type() const override { return type_; }
435

Callers 5

GetDictionaryMethod · 0.45
UniqueFinalizeFunction · 0.45
DictEncodeFinalizeFunction · 0.45
ValueCountsFinalizeFunction · 0.45

Calls 2

OKFunction · 0.50
dataMethod · 0.45

Tested by

no test coverage detected