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

Function LeafValues

cpp/src/arrow/array/array_list_test.cc:1865–1872  ·  view source on GitHub ↗

The innermost values of the nested fixed size lists.

Source from the content-addressed store, hash-verified

1863
1864/// The innermost values of the nested fixed size lists.
1865std::shared_ptr<Array> LeafValues(std::shared_ptr<Array> array) {
1866 while (array->type_id() == Type::FIXED_SIZE_LIST) {
1867 const auto& fsl = checked_cast<const FixedSizeListArray&>(*array);
1868 array =
1869 fsl.values()->Slice(fsl.value_offset(0), array->length() * fsl.value_length());
1870 }
1871 return array;
1872}
1873
1874template <typename T>
1875void CheckToTensor(const std::shared_ptr<Array>& array, const std::vector<int64_t>& shape,

Callers 1

CheckToTensorFunction · 0.85

Calls 6

type_idMethod · 0.45
SliceMethod · 0.45
valuesMethod · 0.45
value_offsetMethod · 0.45
lengthMethod · 0.45
value_lengthMethod · 0.45

Tested by

no test coverage detected