| 265 | } |
| 266 | |
| 267 | arrow::Result<FlightInfo> FlightInfo::Make(const Schema& schema, |
| 268 | const FlightDescriptor& descriptor, |
| 269 | const std::vector<FlightEndpoint>& endpoints, |
| 270 | int64_t total_records, int64_t total_bytes, |
| 271 | bool ordered, std::string app_metadata) { |
| 272 | FlightInfo::Data data; |
| 273 | data.descriptor = descriptor; |
| 274 | data.endpoints = endpoints; |
| 275 | data.total_records = total_records; |
| 276 | data.total_bytes = total_bytes; |
| 277 | data.ordered = ordered; |
| 278 | data.app_metadata = std::move(app_metadata); |
| 279 | RETURN_NOT_OK(internal::SchemaToString(schema, &data.schema)); |
| 280 | return FlightInfo(std::move(data)); |
| 281 | } |
| 282 | |
| 283 | arrow::Result<FlightInfo> FlightInfo::Make(const std::shared_ptr<Schema>& schema, |
| 284 | const FlightDescriptor& descriptor, |
nothing calls this directly
no test coverage detected