Package org.apache.arrow.datafusion
Class SessionContexts
java.lang.Object
org.apache.arrow.datafusion.SessionContexts
Manages session contexts
-
Method Summary
Modifier and TypeMethodDescriptionstatic SessionContextcreate()Create a new default session contextstatic SessionContextwithConfig(Consumer<SessionConfig> configuration) Create a new session context using the provided callback to configure the sessionstatic SessionContextwithConfig(SessionConfig config) Create a new session context using the provided configuration
-
Method Details
-
create
Create a new default session context- Returns:
- The created context
-
withConfig
Create a new session context using the provided configuration- Parameters:
config- the configuration for the session- Returns:
- The created context
-
withConfig
Create a new session context using the provided callback to configure the session- Parameters:
configuration- callback to modify theSessionConfigfor the session- Returns:
- The created context
- Throws:
Exception- if an error is encountered closing the session config resource
-