pub fn read_record_batch<R>(
batch: RecordBatchRef<'_>,
fields: &[Field],
ipc_schema: &IpcSchema,
projection: Option<&[usize]>,
dictionaries: &HashMap<i64, Arc<dyn Array + 'static>, RandomState>,
version: MetadataVersion,
reader: &mut R,
block_offset: u64
) -> Result<Chunk<Arc<dyn Array + 'static>>, ArrowError> where
R: Read + Seek, This is supported on crate feature
io_ipc only.Expand description
Creates a record batch from binary data using the ipc::RecordBatch indexes and the Schema
Panic
Panics iff the projection is not in increasing order (e.g. [1, 0] nor [0, 1, 1] are valid)