Skip to main content

paste_sync

Function paste_sync 

Source
pub fn paste_sync<I, J>(
    b0: I,
    b1: J,
    os0: Option<SchemaRef>,
    os1: Option<SchemaRef>,
) -> Box<dyn Iterator<Item = Result<RecordBatch, Error>> + 'static>
where I: Iterator<Item = Result<RecordBatch, Error>> + 'static, J: Iterator<Item = Result<RecordBatch, Error>> + 'static,
Expand description

Pastes two iterators of record batches together.

If the schemas are not provided, they are inferred from the first batch of each iterator.

§Arguments

  • b0 - The first iterator of record batches.
  • b1 - The second iterator of record batches.
  • os0 - An optional schema for the first iterator.
  • os1 - An optional schema for the second iterator.

§Returns

An iterator that yields the pasted record batches.