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

Function VisitVector

r/src/r_to_arrow.cpp:230–243  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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