Skip to main content

decode_index_instrument_batch

Function decode_index_instrument_batch 

Source
pub fn decode_index_instrument_batch(
    metadata: &HashMap<String, String>,
    record_batch: &RecordBatch,
) -> Result<Vec<IndexInstrument>, EncodingError>
Expand description

Helper function to decode IndexInstrument from RecordBatch (Cannot implement DecodeFromRecordBatch trait due to Into<Data> bound)

ยงErrors

Returns an EncodingError if the RecordBatch cannot be decoded.