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

Method Allocate

r/src/array_to_vector.cpp:974–984  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

972 : Converter_Time<value_type, TimestampType>(chunked_array) {}
973
974 SEXP Allocate(R_xlen_t n) const {
975 cpp11::writable::doubles data(n);
976 Rf_classgets(data, arrow::r::data::classes_POSIXct);
977 auto array_type =
978 checked_cast<const TimestampType*>(this->chunked_array_->type().get());
979 std::string tzone = array_type->timezone();
980 if (tzone.size() > 0) {
981 data.attr("tzone") = tzone;
982 }
983 return data;
984 }
985};
986
987template <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