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

Method RenewFlightEndpoint

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

Source from the content-addressed store, hash-verified

603}
604
605arrow::Result<FlightEndpoint> FlightClient::RenewFlightEndpoint(
606 const FlightCallOptions& options, const RenewFlightEndpointRequest& request) {
607 ARROW_ASSIGN_OR_RAISE(auto body, request.SerializeToBuffer());
608 Action action{ActionType::kRenewFlightEndpoint.type, std::move(body)};
609 ARROW_ASSIGN_OR_RAISE(auto stream, DoAction(options, action));
610 ARROW_ASSIGN_OR_RAISE(auto result, stream->Next());
611 ARROW_ASSIGN_OR_RAISE(auto renewed_endpoint,
612 FlightEndpoint::Deserialize(std::string_view(*result->body)));
613 ARROW_RETURN_NOT_OK(stream->Drain());
614 return renewed_endpoint;
615}
616
617arrow::Result<std::vector<ActionType>> FlightClient::ListActions(
618 const FlightCallOptions& options) {

Callers

nothing calls this directly

Calls 1

DrainMethod · 0.80

Tested by

no test coverage detected