initialize the altrep classes
| 1031 | |
| 1032 | // initialize the altrep classes |
| 1033 | void Init_Altrep_classes(DllInfo* dll) { |
| 1034 | InitAltRealClass<AltrepVectorPrimitive<REALSXP>>(dll, "arrow::array_dbl_vector"); |
| 1035 | InitAltIntegerClass<AltrepVectorPrimitive<INTSXP>>(dll, "arrow::array_int_vector"); |
| 1036 | InitAltIntegerClass<AltrepFactor>(dll, "arrow::array_factor"); |
| 1037 | |
| 1038 | InitAltStringClass<AltrepVectorString<StringType>>(dll, "arrow::array_string_vector"); |
| 1039 | InitAltStringClass<AltrepVectorString<LargeStringType>>( |
| 1040 | dll, "arrow::array_large_string_vector"); |
| 1041 | } |
| 1042 | |
| 1043 | // return an altrep R vector that shadows the array if possible |
| 1044 | SEXP MakeAltrepVector(const std::shared_ptr<ChunkedArray>& chunked_array) { |