Skip to main content

encode_batch_with_identifier

Function encode_batch_with_identifier 

Source
pub fn encode_batch_with_identifier<'a, T, D, I>(
    type_name: &'static str,
    metadata: &HashMap<String, String>,
    data: D,
    fields: &[JsonFieldSpec],
    identifiers: impl IntoIterator<Item = I>,
) -> Result<RecordBatch, ArrowError>
where T: Serialize + 'a, D: IntoIterator<Item = &'a T>, D::IntoIter: ExactSizeIterator, I: Display,
Expand description

Encodes typed records with the catalog row identifier column.

ยงErrors

Returns an error if the number of identifiers differs from the number of data rows or if any field cannot be encoded into the requested Arrow column type.