public class SessionOptionManager extends InMemoryOptionManager
OptionManager that holds options within UserSession context. Options
set at the session level only apply to queries that you run during the current Drill connection. Session level
settings override system level settings.
NOTE that currently, the effects of deleting a short lived option (see OptionValidator.isShortLived()) are
undefined. For example, we inject an exception (passed through an option), then try to delete the option, depending
on where the exception was injected, the reset query could either succeed or the exception could actually be thrown
in the reset query itself.optionsfallback| Constructor and Description |
|---|
SessionOptionManager(OptionManager systemOptions,
UserSession session) |
| Modifier and Type | Method and Description |
|---|---|
OptionValue |
getDefault(String optionName)
Gets the default value for the specified option.
|
protected OptionValue.OptionScope |
getScope() |
SystemOptionManager |
getSystemOptionManager()
Gets the SystemOptionManager.
|
void |
setLocalOptionHelper(OptionValue value) |
deleteAllLocalOptions, deleteLocalOptiongetOption, getOptionDefinition, getOptionList, iteratorgetBoolean, getDouble, getInternalOptionList, getLong, getOption, getOption, getOption, getOption, getPublicOptionList, getString, setLocalOption, setLocalOption, setLocalOption, setLocalOption, setLocalOption, setLocalOptionpublic SessionOptionManager(OptionManager systemOptions, UserSession session)
public void setLocalOptionHelper(OptionValue value)
setLocalOptionHelper in class InMemoryOptionManagerpublic SystemOptionManager getSystemOptionManager()
public OptionValue getDefault(String optionName)
OptionSetoptionName - The option to retrieve the default value for.protected OptionValue.OptionScope getScope()
getScope in class BaseOptionManagerCopyright © 2017 The Apache Software Foundation. All rights reserved.