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

Method GetSessionOptions

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

Source from the content-addressed store, hash-verified

736}
737
738::arrow::Result<GetSessionOptionsResult> FlightClient::GetSessionOptions(
739 const FlightCallOptions& options, const GetSessionOptionsRequest& request) {
740 RETURN_NOT_OK(CheckOpen());
741 ARROW_ASSIGN_OR_RAISE(auto body, request.SerializeToBuffer());
742 Action action{ActionType::kGetSessionOptions.type, std::move(body)};
743 ARROW_ASSIGN_OR_RAISE(auto stream, DoAction(options, action));
744 ARROW_ASSIGN_OR_RAISE(auto result, stream->Next());
745 ARROW_ASSIGN_OR_RAISE(
746 auto get_session_options_result,
747 GetSessionOptionsResult::Deserialize(std::string_view(*result->body)));
748 ARROW_RETURN_NOT_OK(stream->Drain());
749 return get_session_options_result;
750}
751
752::arrow::Result<CloseSessionResult> FlightClient::CloseSession(
753 const FlightCallOptions& options, const CloseSessionRequest& request) {

Callers

nothing calls this directly

Calls 1

DrainMethod · 0.80

Tested by

no test coverage detected