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

Method Allocate

r/src/array_to_vector.cpp:952–962  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

950 : Converter_Time<value_type, TimestampType>(chunked_array) {}
951
952 SEXP Allocate(R_xlen_t n) const {
953 cpp11::writable::doubles data(n);
954 Rf_classgets(data, arrow::r::data::classes_POSIXct);
955 auto array_type =
956 checked_cast<const TimestampType*>(this->chunked_array_->type().get());
957 std::string tzone = array_type->timezone();
958 if (tzone.size() > 0) {
959 data.attr("tzone") = tzone;
960 }
961 return data;
962 }
963};
964
965template <typename Type>

Callers

nothing calls this directly

Calls 4

timezoneMethod · 0.80
getMethod · 0.45
typeMethod · 0.45
sizeMethod · 0.45

Tested by

no test coverage detected