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

Method ReadNext

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

Source from the content-addressed store, hash-verified

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