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

Method Make

r/src/altrep.cpp:96–104  ·  view source on GitHub ↗

store the Array as an external pointer in data1, mark as immutable

Source from the content-addressed store, hash-verified

94struct AltrepVectorBase {
95 // store the Array as an external pointer in data1, mark as immutable
96 static SEXP Make(const std::shared_ptr<ChunkedArray>& chunked_array) {
97 SEXP alt = R_new_altrep(
98 Impl::class_t,
99 external_pointer<ArrowAltrepData>(new ArrowAltrepData(chunked_array)),
100 R_NilValue);
101 MARK_NOT_MUTABLE(alt);
102
103 return alt;
104 }
105
106 // Is the vector materialized, i.e. does the data2 slot contain a
107 // standard R vector with the same data as the array.

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected