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

Method Transpose

cpp/src/arrow/array/array_dict.cc:315–322  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

313} // namespace
314
315Result<std::shared_ptr<Array>> DictionaryArray::Transpose(
316 const std::shared_ptr<DataType>& type, const std::shared_ptr<Array>& dictionary,
317 const int32_t* transpose_map, MemoryPool* pool) const {
318 ARROW_ASSIGN_OR_RAISE(auto transposed,
319 TransposeDictIndices(data_, data_->type, type, dictionary->data(),
320 transpose_map, pool));
321 return MakeArray(std::move(transposed));
322}
323
324Result<std::shared_ptr<Array>> DictionaryArray::Compact(MemoryPool* pool) const {
325 std::shared_ptr<Array> compact_dictionary;

Callers 1

CompactMethod · 0.95

Calls 1

MakeArrayFunction · 0.70

Tested by

no test coverage detected