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

Method ReadNext

cpp/src/arrow/c/bridge.cc:2444–2457  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2442 std::shared_ptr<DataType> data_type() const { return field_->type(); }
2443
2444 Status ReadNext(std::shared_ptr<Array>* array) {
2445 ARROW_RETURN_NOT_OK(this->CheckNotReleased());
2446
2447 ArrayType c_array;
2448 ARROW_RETURN_NOT_OK(this->ReadNextArrayInternal(&c_array));
2449
2450 if (ArrayTraits::IsReleasedFunc(&c_array)) {
2451 // End of stream
2452 array->reset();
2453 return Status::OK();
2454 } else {
2455 return this->ImportArrayInternal(&c_array, field_->type()).Value(array);
2456 }
2457 }
2458
2459 private:
2460 std::shared_ptr<Field> field_;

Callers

nothing calls this directly

Calls 7

CheckNotReleasedMethod · 0.80
ReadNextArrayInternalMethod · 0.80
ImportArrayInternalMethod · 0.80
OKFunction · 0.50
resetMethod · 0.45
ValueMethod · 0.45
typeMethod · 0.45

Tested by

no test coverage detected