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

Method AllocateSlice

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

Allocate a vector of the right R type for a slice of the data this converter was built for, i.e. never as an altrep vector shadowing the whole chunked array. Only converters whose Allocate() may hand out altrep vectors (e.g. Converter_Struct) need to override this.

Source from the content-addressed store, hash-verified

53 // Only converters whose Allocate() may hand out altrep vectors (e.g. Converter_Struct)
54 // need to override this.
55 virtual SEXP AllocateSlice(R_xlen_t n) const { return Allocate(n); }
56
57 // data[ start:(start + n) ] = NA
58 virtual Status Ingest_all_nulls(SEXP data, R_xlen_t start, R_xlen_t n) const = 0;

Callers 3

AllocateSliceMethod · 0.45
AllocateMethod · 0.45
AllocateMethod · 0.45

Calls 1

AllocateFunction · 0.85

Tested by

no test coverage detected