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

Function VisitVector

r/src/r_to_arrow.cpp:231–244  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

229
230template <typename Iterator, typename AppendNull, typename AppendValue>
231Status VisitVector(Iterator it, int64_t n, AppendNull&& append_null,
232 AppendValue&& append_value) {
233 for (R_xlen_t i = 0; i < n; i++, ++it) {
234 auto value = *it;
235
236 if (is_NA<typename Iterator::value_type>(value)) {
237 RETURN_NOT_OK(append_null());
238 } else {
239 RETURN_NOT_OK(append_value(value));
240 }
241 }
242
243 return Status::OK();
244}
245
246class RConverter : public Converter<SEXP, RConversionOptions> {
247 public:

Callers 12

Extend_implMethod · 0.85
Extend_implMethod · 0.85
AppendRange_DateMethod · 0.85
AppendRange_PosixctMethod · 0.85
ExtendMethod · 0.85
ExtendMethod · 0.85
ExtendMethod · 0.85
ExtendMethod · 0.85
ExtendMethod · 0.85
ExtendMethod · 0.85
ExtendImplMethod · 0.85
ExtendMethod · 0.85

Calls 1

OKFunction · 0.50

Tested by

no test coverage detected