Class SessionContexts

java.lang.Object
org.apache.arrow.datafusion.SessionContexts

public class SessionContexts extends Object
Manages session contexts
  • Method Details

    • create

      public static SessionContext create()
      Create a new default session context
      Returns:
      The created context
    • withConfig

      public static SessionContext withConfig(SessionConfig config)
      Create a new session context using the provided configuration
      Parameters:
      config - the configuration for the session
      Returns:
      The created context
    • withConfig

      public static SessionContext withConfig(Consumer<SessionConfig> configuration) throws Exception
      Create a new session context using the provided callback to configure the session
      Parameters:
      configuration - callback to modify the SessionConfig for the session
      Returns:
      The created context
      Throws:
      Exception - if an error is encountered closing the session config resource