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

Method schema

datafusion-examples/examples/data_io/catalog.rs:245–254  ·  view source on GitHub ↗
(&self, name: &str)

Source from the content-addressed store, hash-verified

243 }
244
245 fn schema(&self, name: &str) -> Option<Arc<dyn SchemaProvider>> {
246 let schemas = self.schemas.read().unwrap();
247 let maybe_schema = schemas.get(name);
248 if let Some(schema) = maybe_schema {
249 let schema = schema.clone() as Arc<dyn SchemaProvider>;
250 Some(schema)
251 } else {
252 None
253 }
254 }
255}
256
257/// Catalog lists holds multiple catalog providers. Each context has a single catalog list.

Callers 3

setup_encryptionFunction · 0.45
json_shreddingFunction · 0.45
in_memory_object_storeFunction · 0.45

Calls 3

readMethod · 0.80
getMethod · 0.45
cloneMethod · 0.45

Tested by

no test coverage detected