pub struct SessionStateDefaults {}
Expand description
Defaults that are used as part of creating a SessionState such as table providers, file formats, registering of builtin functions, etc.
Implementations§
Source§impl SessionStateDefaults
impl SessionStateDefaults
Sourcepub fn default_table_factories() -> HashMap<String, Arc<dyn TableProviderFactory>>
pub fn default_table_factories() -> HashMap<String, Arc<dyn TableProviderFactory>>
returns a map of the default TableProviderFactory
s
Sourcepub fn default_catalog(
config: &SessionConfig,
table_factories: &HashMap<String, Arc<dyn TableProviderFactory>>,
runtime: &Arc<RuntimeEnv>,
) -> MemoryCatalogProvider
pub fn default_catalog( config: &SessionConfig, table_factories: &HashMap<String, Arc<dyn TableProviderFactory>>, runtime: &Arc<RuntimeEnv>, ) -> MemoryCatalogProvider
returns the default MemoryCatalogProvider
Sourcepub fn default_expr_planners() -> Vec<Arc<dyn ExprPlanner>>
pub fn default_expr_planners() -> Vec<Arc<dyn ExprPlanner>>
returns the list of default ExprPlanner
s
Sourcepub fn default_scalar_functions() -> Vec<Arc<ScalarUDF>>
pub fn default_scalar_functions() -> Vec<Arc<ScalarUDF>>
returns the list of default [`ScalarUDF’]’s
Sourcepub fn default_aggregate_functions() -> Vec<Arc<AggregateUDF>>
pub fn default_aggregate_functions() -> Vec<Arc<AggregateUDF>>
returns the list of default [`AggregateUDF’]’s
Sourcepub fn default_window_functions() -> Vec<Arc<WindowUDF>>
pub fn default_window_functions() -> Vec<Arc<WindowUDF>>
returns the list of default [`WindowUDF’]’s
Sourcepub fn default_table_functions() -> Vec<Arc<TableFunction>>
pub fn default_table_functions() -> Vec<Arc<TableFunction>>
returns the list of default TableFunction
s
Sourcepub fn default_file_formats() -> Vec<Arc<dyn FileFormatFactory>>
pub fn default_file_formats() -> Vec<Arc<dyn FileFormatFactory>>
returns the list of default [`FileFormatFactory’]’s
Sourcepub fn register_builtin_functions(state: &mut SessionState)
pub fn register_builtin_functions(state: &mut SessionState)
registers all builtin functions - scalar, array and aggregate
Sourcepub fn register_scalar_functions(state: &mut SessionState)
pub fn register_scalar_functions(state: &mut SessionState)
registers all the builtin scalar functions
Sourcepub fn register_array_functions(state: &mut SessionState)
pub fn register_array_functions(state: &mut SessionState)
registers all the builtin array functions
Sourcepub fn register_aggregate_functions(state: &mut SessionState)
pub fn register_aggregate_functions(state: &mut SessionState)
registers all the builtin aggregate functions
Sourcepub fn register_default_schema(
config: &SessionConfig,
table_factories: &HashMap<String, Arc<dyn TableProviderFactory>>,
runtime: &Arc<RuntimeEnv>,
default_catalog: &MemoryCatalogProvider,
)
pub fn register_default_schema( config: &SessionConfig, table_factories: &HashMap<String, Arc<dyn TableProviderFactory>>, runtime: &Arc<RuntimeEnv>, default_catalog: &MemoryCatalogProvider, )
registers the default schema
Sourcepub fn register_default_file_formats(state: &mut SessionState)
pub fn register_default_file_formats(state: &mut SessionState)
registers the default FileFormatFactory
s
Auto Trait Implementations§
impl Freeze for SessionStateDefaults
impl RefUnwindSafe for SessionStateDefaults
impl Send for SessionStateDefaults
impl Sync for SessionStateDefaults
impl Unpin for SessionStateDefaults
impl UnwindSafe for SessionStateDefaults
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more