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

Method build

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

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)

Source from the content-addressed store, hash-verified

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.

Callers 15

bench_encodeFunction · 0.45
roundtripFunction · 0.45
verify_flight_round_tripFunction · 0.45
verify_encoded_splitFunction · 0.45
do_getMethod · 0.45

Calls

no outgoing calls