Retrieve an [`EncryptionFactory`] by its identifier
(&self, id: &str)
| 71 | |
| 72 | /// Retrieve an [`EncryptionFactory`] by its identifier |
| 73 | pub fn get_factory(&self, id: &str) -> Result<Arc<dyn EncryptionFactory>> { |
| 74 | self.factories |
| 75 | .get(id) |
| 76 | .map(|f| Arc::clone(f.value())) |
| 77 | .ok_or_else(|| { |
| 78 | internal_datafusion_err!( |
| 79 | "No Parquet encryption factory found for id '{id}'" |
| 80 | ) |
| 81 | }) |
| 82 | } |
| 83 | } |
no test coverage detected