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

Method DoGet

cpp/src/arrow/flight/client.cc:677–689  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

675}
676
677arrow::Result<std::unique_ptr<FlightStreamReader>> FlightClient::DoGet(
678 const FlightCallOptions& options, const Ticket& ticket) {
679 RETURN_NOT_OK(CheckOpen());
680 std::unique_ptr<internal::ClientDataStream> remote_stream;
681 RETURN_NOT_OK(transport_->DoGet(options, ticket, &remote_stream));
682 std::unique_ptr<FlightStreamReader> stream_reader =
683 std::make_unique<ClientStreamReader>(std::move(remote_stream), options.read_options,
684 options.stop_token, options.memory_manager);
685 // Eagerly read the schema
686 RETURN_NOT_OK(
687 static_cast<ClientStreamReader*>(stream_reader.get())->EnsureDataStarted());
688 return stream_reader;
689}
690
691arrow::Result<FlightClient::DoPutResult> FlightClient::DoPut(
692 const FlightCallOptions& options, const FlightDescriptor& descriptor,

Callers

nothing calls this directly

Calls 2

EnsureDataStartedMethod · 0.45
getMethod · 0.45

Tested by

no test coverage detected