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

Method Next

cpp/src/arrow/flight/types.cc:1107–1112  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1105 : position_(0), flights_(std::move(flights)) {}
1106
1107arrow::Result<std::unique_ptr<FlightInfo>> SimpleFlightListing::Next() {
1108 if (position_ >= static_cast<int>(flights_.size())) {
1109 return nullptr;
1110 }
1111 return std::make_unique<FlightInfo>(std::move(flights_[position_++]));
1112}
1113
1114SimpleResultStream::SimpleResultStream(std::vector<Result>&& results)
1115 : results_(std::move(results)), position_(0) {}

Callers 15

ApplyBinaryChunkedFunction · 0.45
ReadNextMethod · 0.45
TESTFunction · 0.45
RunDoGetTestFunction · 0.45
TestDoExchangeMethod · 0.45
TestDoExchangePutMethod · 0.45
TestDoExchangeTotalMethod · 0.45
TestDoExchangeErrorMethod · 0.45
DoPutMethod · 0.45
DoPutMethod · 0.45

Calls 1

sizeMethod · 0.45

Tested by 15

TESTFunction · 0.36
TestDoExchangeMethod · 0.36
TestDoExchangePutMethod · 0.36
TestDoExchangeTotalMethod · 0.36
TestDoExchangeErrorMethod · 0.36
DoPutMethod · 0.36
DoPutMethod · 0.36
TestDoGetReadOptionsMethod · 0.36
DoExchangeMethod · 0.36
RunExchangePutMethod · 0.36