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

Method ChildData

cpp/src/arrow/array/concatenate.cc:879–886  ·  view source on GitHub ↗

Gather the index-th child_data of each input into a vector. Elements are sliced with that input's offset and length.

Source from the content-addressed store, hash-verified

877 // Gather the index-th child_data of each input into a vector.
878 // Elements are sliced with that input's offset and length.
879 Result<ArrayDataVector> ChildData(size_t index) {
880 ArrayDataVector child_data(in_.size());
881 for (size_t i = 0; i < in_.size(); ++i) {
882 ARROW_ASSIGN_OR_RAISE(child_data[i], in_[i]->child_data[index]->SliceSafe(
883 in_[i]->offset, in_[i]->length));
884 }
885 return child_data;
886 }
887
888 // Gather the index-th child_data of each input into a vector.
889 // Elements are sliced with that input's offset and length multiplied by multiplier.

Callers

nothing calls this directly

Calls 3

ARROW_ASSIGN_OR_RAISEFunction · 0.50
sizeMethod · 0.45
SliceSafeMethod · 0.45

Tested by

no test coverage detected