| 373 | } |
| 374 | |
| 375 | Status CreateFlightInfo(const std::shared_ptr<arrow::Schema>& schema, |
| 376 | const arrow::flight::FlightDescriptor& descriptor, |
| 377 | const std::vector<arrow::flight::FlightEndpoint>& endpoints, |
| 378 | int64_t total_records, int64_t total_bytes, bool ordered, |
| 379 | const std::string& app_metadata, |
| 380 | std::unique_ptr<arrow::flight::FlightInfo>* out) { |
| 381 | ARROW_ASSIGN_OR_RAISE(auto result, arrow::flight::FlightInfo::Make( |
| 382 | schema, descriptor, endpoints, total_records, |
| 383 | total_bytes, ordered, app_metadata)); |
| 384 | *out = std::unique_ptr<arrow::flight::FlightInfo>( |
| 385 | new arrow::flight::FlightInfo(std::move(result))); |
| 386 | return Status::OK(); |
| 387 | } |
| 388 | |
| 389 | Status CreateSchemaResult(const std::shared_ptr<arrow::Schema>& schema, |
| 390 | std::unique_ptr<arrow::flight::SchemaResult>* out) { |