MCPcopy Create free account
hub / github.com/apache/datafusion / get_factory

Method get_factory

datafusion/execution/src/parquet_encryption.rs:73–82  ·  view source on GitHub ↗

Retrieve an [`EncryptionFactory`] by its identifier

(&self, id: &str)

Source from the content-addressed store, hash-verified

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}

Callers 1

Calls 3

mapMethod · 0.45
getMethod · 0.45
valueMethod · 0.45

Tested by

no test coverage detected