MCPcopy Create free account
hub / github.com/apache/arrow / operator()

Method operator()

cpp/src/arrow/array/diff.cc:707–718  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

705 explicit ListImpl(Formatter f) : values_formatter_(std::move(f)) {}
706
707 void operator()(const Array& array, int64_t index, std::ostream* os) {
708 const auto& list_array =
709 checked_cast<const typename TypeTraits<T>::ArrayType&>(array);
710 *os << "[";
711 for (int32_t i = 0; i < list_array.value_length(index); ++i) {
712 if (i != 0) {
713 *os << ", ";
714 }
715 values_formatter_(*list_array.values(), i + list_array.value_offset(index), os);
716 }
717 *os << "]";
718 }
719
720 Formatter values_formatter_;
721 };

Callers

nothing calls this directly

Calls 3

value_lengthMethod · 0.45
valuesMethod · 0.45
value_offsetMethod · 0.45

Tested by

no test coverage detected