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

Method DelayedExtend

r/src/r_to_arrow.cpp:1128–1144  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1126 }
1127
1128 void DelayedExtend(SEXP values, int64_t size, RTasks& tasks) override {
1129 // the setup runs synchronously first
1130 Status setup = ExtendSetup(values, size, /*offset=*/0);
1131
1132 if (!setup.ok()) {
1133 // if that fails, propagate the error
1134 tasks.Append(false, [setup]() { return setup; });
1135 } else {
1136 // otherwise deal with each column, maybe concurrently
1137 auto fields = this->struct_type_->fields();
1138 R_xlen_t n_columns = XLENGTH(values);
1139
1140 for (R_xlen_t i = 0; i < n_columns; i++) {
1141 children_[i]->DelayedExtend(VECTOR_ELT(values, i), size, tasks);
1142 }
1143 }
1144 }
1145
1146 protected:
1147 Status Init(MemoryPool* pool) override {

Callers

nothing calls this directly

Calls 4

okMethod · 0.45
AppendMethod · 0.45
fieldsMethod · 0.45
DelayedExtendMethod · 0.45

Tested by

no test coverage detected