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

Function OutcomeToResult

cpp/src/arrow/filesystem/s3_internal.h:242–249  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

240
241template <typename AwsResult, typename Error>
242Result<AwsResult> OutcomeToResult(const std::string& operation,
243 Aws::Utils::Outcome<AwsResult, Error> outcome) {
244 if (outcome.IsSuccess()) {
245 return std::move(outcome).GetResultWithOwnership();
246 } else {
247 return ErrorToStatus(operation, outcome.GetError());
248 }
249}
250
251inline Aws::String ToAwsString(const std::string& s) {
252 // Direct construction of Aws::String from std::string doesn't work because

Callers 1

GetObjectRangeFunction · 0.85

Calls 1

ErrorToStatusFunction · 0.85

Tested by

no test coverage detected