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

Method CopyInto

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

Source from the content-addressed store, hash-verified

1751 }
1752
1753 Status CopyInto(std::shared_ptr<ChunkedArray> data, int64_t rel_placement) override {
1754 const auto& type = checked_cast<const DurationType&>(*data->type());
1755 ARROW_DCHECK_EQ(UNIT, type.unit()) << "Should only call instances of this writer "
1756 << "with arrays of the correct unit";
1757 ConvertNumericNullable<int64_t>(*data, kPandasTimestampNull,
1758 this->GetBlockColumnStart(rel_placement));
1759 return Status::OK();
1760 }
1761
1762 protected:
1763 Status Allocate() override { return AllocateTimedelta(2); }

Callers

nothing calls this directly

Calls 4

GetBlockColumnStartMethod · 0.80
OKFunction · 0.50
typeMethod · 0.45
unitMethod · 0.45

Tested by

no test coverage detected