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

Method Make

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

Source from the content-addressed store, hash-verified

265}
266
267arrow::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
283arrow::Result<FlightInfo> FlightInfo::Make(const std::shared_ptr<Schema>& schema,
284 const FlightDescriptor& descriptor,

Callers

nothing calls this directly

Calls 2

SchemaToStringFunction · 0.85
FlightInfoFunction · 0.70

Tested by

no test coverage detected