Class SessionConfig

java.lang.Object
org.apache.arrow.datafusion.SessionConfig
All Implemented Interfaces:
AutoCloseable

public class SessionConfig extends Object implements AutoCloseable
  • Constructor Details

    • SessionConfig

      public SessionConfig()
      Create a new default SessionConfig
  • Method Details

    • executionOptions

      public ExecutionOptions executionOptions()
      Get options related to query execution
      Returns:
      ExecutionOptions instance for this config
    • sqlParserOptions

      public SqlParserOptions sqlParserOptions()
      Get options specific to parsing SQL queries
      Returns:
      SqlParserOptions instance for this config
    • withConfiguration

      public SessionConfig withConfiguration(Consumer<SessionConfig> configurationCallback)
      Modify this session configuration and then return it, to simplify use in a try-with-resources statement
      Parameters:
      configurationCallback - Callback used to update the configuration
      Returns:
      This SessionConfig instance after being updated
    • registerChild

      protected final void registerChild(org.apache.arrow.datafusion.AbstractProxy child)
      Register a child proxy object that should be closed when this object is closed
      Parameters:
      child - the child proxy to register
    • isClosed

      protected final boolean isClosed()
      Returns:
      Whether the object has been closed
    • getPointer

      public final long getPointer()
    • close

      public final void close() throws Exception
      Specified by:
      close in interface AutoCloseable
      Throws:
      Exception