Takes a [`Stream`] of [`Result `] and returns a [`Stream`] of [`FlightData`], consuming self. See example on [`Self`] and [`FlightDataEncoder`] for more details
(self, input: S)
| 239 | /// |
| 240 | /// See example on [`Self`] and [`FlightDataEncoder`] for more details |
| 241 | pub fn build<S>(self, input: S) -> FlightDataEncoder |
| 242 | where |
| 243 | S: Stream<Item = Result<RecordBatch>> + Send + 'static, |
| 244 | { |
| 245 | let Self { |
| 246 | max_flight_data_size, |
| 247 | options, |
| 248 | app_metadata, |
| 249 | schema, |
| 250 | descriptor, |
| 251 | dictionary_handling, |
| 252 | } = self; |
| 253 | |
| 254 | FlightDataEncoder::new( |
| 255 | input.boxed(), |
| 256 | schema, |
| 257 | max_flight_data_size, |
| 258 | options, |
| 259 | app_metadata, |
| 260 | descriptor, |
| 261 | dictionary_handling, |
| 262 | ) |
| 263 | } |
| 264 | } |
| 265 | |
| 266 | /// Stream that encodes a stream of record batches to flight data. |
no outgoing calls