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

Method CanZeroCopy

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

Source from the content-addressed store, hash-verified

1435 using T = typename ArrowType::c_type;
1436
1437 bool CanZeroCopy(const ChunkedArray& data) const override {
1438 return IsNonNullContiguous(data) && data.type()->id() == ArrowType::type_id;
1439 }
1440
1441 Status CopyInto(std::shared_ptr<ChunkedArray> data, int64_t rel_placement) override {
1442 Type::type in_type = data->type()->id();

Callers

nothing calls this directly

Calls 3

IsNonNullContiguousFunction · 0.85
idMethod · 0.45
typeMethod · 0.45

Tested by

no test coverage detected