MCPcopy Create free account
hub / github.com/apache/arrow-rs / with_schema

Method with_schema

arrow-flight/src/encode.rs:226–229  ·  view source on GitHub ↗

Specify a schema for the RecordBatches being sent. If a schema is not specified, an encoded Schema message will be sent when the first [`RecordBatch`], if any, is encoded. Some clients expect a Schema message even if there is no data sent.

(mut self, schema: SchemaRef)

Source from the content-addressed store, hash-verified

224 /// the first [`RecordBatch`], if any, is encoded. Some clients
225 /// expect a Schema message even if there is no data sent.
226 pub fn with_schema(mut self, schema: SchemaRef) -> Self {
227 self.schema = Some(schema);
228 self
229 }
230
231 /// Specify a flight descriptor in the first FlightData message.
232 pub fn with_flight_descriptor(mut self, descriptor: Option<FlightDescriptor>) -> Self {

Calls

no outgoing calls