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

Method ChildData

cpp/src/arrow/array/concatenate.cc:878–885  ·  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

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