Package org.apache.arrow.datafusion
Class SessionConfig
java.lang.Object
org.apache.arrow.datafusion.SessionConfig
- All Implemented Interfaces:
AutoCloseable
Configuration for creating a
SessionContext using SessionContexts.withConfig(org.apache.arrow.datafusion.SessionConfig)-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal voidclose()Get options related to query executionfinal longprotected final booleanisClosed()protected final voidregisterChild(org.apache.arrow.datafusion.AbstractProxy child) Register a child proxy object that should be closed when this object is closedGet options specific to parsing SQL querieswithConfiguration(Consumer<SessionConfig> configurationCallback) Modify this session configuration and then return it, to simplify use in a try-with-resources statementMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface java.lang.AutoCloseable
close
-
Constructor Details
-
SessionConfig
public SessionConfig()Create a new defaultSessionConfig
-
-
Method Details
-
executionOptions
Get options related to query execution- Returns:
ExecutionOptionsinstance for this config
-
sqlParserOptions
Get options specific to parsing SQL queries- Returns:
SqlParserOptionsinstance for this config
-
withConfiguration
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
SessionConfiginstance 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
- Specified by:
closein interfaceAutoCloseable- Throws:
Exception
-