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

Method new

datafusion/core/tests/datasource/object_store_access.rs:950–961  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

948
949impl Test {
950 fn new() -> Self {
951 let object_store = Arc::new(RequestCountingObjectStore::new());
952 let session_context = SessionContext::new();
953 session_context
954 .runtime_env()
955 .register_object_store(&Url::parse("mem://").unwrap(), object_store.clone());
956 Self {
957 object_store,
958 session_context,
959 parquet_metadata_size_hint: None,
960 }
961 }
962
963 /// Specify the metadata size hint to use when registering parquet files
964 fn with_parquet_metadata_size_hint(mut self, size_hint: Option<usize>) -> Self {

Callers

nothing calls this directly

Calls 4

newFunction · 0.85
register_object_storeMethod · 0.45
runtime_envMethod · 0.45
cloneMethod · 0.45

Tested by

no test coverage detected