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

Method Allocate

r/src/array_to_vector.cpp:1046–1056  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1044 : Converter_Time<value_type, TimestampType>(chunked_array) {}
1045
1046 SEXP Allocate(R_xlen_t n) const {
1047 cpp11::writable::doubles data(n);
1048 Rf_classgets(data, arrow::r::data::classes_POSIXct);
1049 auto array_type =
1050 checked_cast<const TimestampType*>(this->chunked_array_->type().get());
1051 std::string tzone = array_type->timezone();
1052 if (tzone.size() > 0) {
1053 data.attr("tzone") = tzone;
1054 }
1055 return data;
1056 }
1057};
1058
1059template <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