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

Function CreateFlightInfo

python/pyarrow/src/arrow/python/flight.cc:375–387  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

373}
374
375Status 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
389Status CreateSchemaResult(const std::shared_ptr<arrow::Schema>& schema,
390 std::unique_ptr<arrow::flight::SchemaResult>* out) {

Callers

nothing calls this directly

Calls 1

OKFunction · 0.50

Tested by

no test coverage detected