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

Method CopyInto

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

Source from the content-addressed store, hash-verified

1577 using TypedPandasWriter<NPY_DATETIME>::TypedPandasWriter;
1578
1579 Status CopyInto(std::shared_ptr<ChunkedArray> data, int64_t rel_placement) override {
1580 int64_t* out_values = this->GetBlockColumnStart(rel_placement);
1581 const auto& type = checked_cast<const DateType&>(*data->type());
1582 switch (type.unit()) {
1583 case DateUnit::DAY:
1584 ConvertDatesShift<int32_t, 1LL>(*data, out_values);
1585 break;
1586 case DateUnit::MILLI:
1587 ConvertDatesShift<int64_t, 86400000LL>(*data, out_values);
1588 break;
1589 }
1590 return Status::OK();
1591 }
1592
1593 protected:
1594 Status Allocate() override {

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