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

Method VisitListLike

cpp/src/arrow/scalar.cc:918–923  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

916
917 template <typename T, typename ScalarType = typename TypeTraits<T>::ScalarType>
918 Status VisitListLike(const T& type, int64_t list_size = 0) {
919 ARROW_ASSIGN_OR_RAISE(std::shared_ptr<Array> value,
920 MakeArrayOfNull(type.value_type(), list_size));
921 out_ = std::make_shared<ScalarType>(std::move(value), type_, /*is_valid=*/false);
922 return Status::OK();
923 }
924
925 Status Visit(const ListType& type) { return VisitListLike<ListType>(type); }
926

Callers

nothing calls this directly

Calls 4

MakeArrayOfNullFunction · 0.85
OKFunction · 0.70
ARROW_ASSIGN_OR_RAISEFunction · 0.50
value_typeMethod · 0.45

Tested by

no test coverage detected