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

Method Unwrap

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

Source from the content-addressed store, hash-verified

1186}
1187
1188std::optional<std::reference_wrapper<const TransportStatusDetail>>
1189TransportStatusDetail::Unwrap(const Status& status) {
1190 std::shared_ptr<StatusDetail> detail = status.detail();
1191 if (!detail) return std::nullopt;
1192 if (detail->type_id() != kTypeId) return std::nullopt;
1193 return std::cref(arrow::internal::checked_cast<const TransportStatusDetail&>(*detail));
1194}
1195
1196//------------------------------------------------------------
1197// Async types

Callers

nothing calls this directly

Calls 1

type_idMethod · 0.45

Tested by

no test coverage detected