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

Method CopyInto

python/pyarrow/src/arrow/python/arrow_to_pandas.cc:1534–1544  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1532 }
1533
1534 Status CopyInto(std::shared_ptr<ChunkedArray> data, int64_t rel_placement) override {
1535 RETURN_NOT_OK(this->CheckTypeExact(*data->type(), Type::BOOL));
1536 auto out_values = this->GetBlockColumnStart(rel_placement);
1537 for (int c = 0; c < data->num_chunks(); c++) {
1538 const auto& arr = checked_cast<const BooleanArray&>(*data->chunk(c));
1539 for (int64_t i = 0; i < arr.length(); ++i) {
1540 *out_values++ = static_cast<uint8_t>(arr.Value(i));
1541 }
1542 }
1543 return Status::OK();
1544 }
1545};
1546
1547// ----------------------------------------------------------------------

Callers

nothing calls this directly

Calls 7

CheckTypeExactMethod · 0.80
GetBlockColumnStartMethod · 0.80
OKFunction · 0.50
typeMethod · 0.45
num_chunksMethod · 0.45
lengthMethod · 0.45
ValueMethod · 0.45

Tested by

no test coverage detected