Read the dictionary from the buffer and provided metadata, updating the `dictionaries_by_id` with the resulting dictionary
(
buf: &Buffer,
batch: crate::DictionaryBatch,
schema: &Schema,
dictionaries_by_id: &mut HashMap<i64, ArrayRef>,
metadata: &MetadataVersion,
)
| 781 | /// Read the dictionary from the buffer and provided metadata, |
| 782 | /// updating the `dictionaries_by_id` with the resulting dictionary |
| 783 | pub fn read_dictionary( |
| 784 | buf: &Buffer, |
| 785 | batch: crate::DictionaryBatch, |
| 786 | schema: &Schema, |
| 787 | dictionaries_by_id: &mut HashMap<i64, ArrayRef>, |
| 788 | metadata: &MetadataVersion, |
| 789 | ) -> Result<(), ArrowError> { |
| 790 | read_dictionary_impl( |
| 791 | buf, |
| 792 | batch, |
| 793 | schema, |
| 794 | dictionaries_by_id, |
| 795 | metadata, |
| 796 | false, |
| 797 | UnsafeFlag::new(), |
| 798 | ) |
| 799 | } |
| 800 | |
| 801 | fn read_dictionary_impl( |
| 802 | buf: &Buffer, |