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

Method Transpose

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

Source from the content-addressed store, hash-verified

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

Callers 1

CompactMethod · 0.95

Calls 1

MakeArrayFunction · 0.70

Tested by

no test coverage detected