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)
| 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 { |
no outgoing calls