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.options
fallback
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, deleteLocalOption
getOption, getOptionDefinition, getOptionList, iterator
getBoolean, getDouble, getInt, getInternalOptionList, getLong, getOption, getOption, getOption, getOption, getPublicOptionList, getString, setLocalOption, setLocalOption, setLocalOption, setLocalOption, setLocalOption, setLocalOption
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
forEach, spliterator
public SessionOptionManager(OptionManager systemOptions, UserSession session)
public void setLocalOptionHelper(OptionValue value)
setLocalOptionHelper
in class InMemoryOptionManager
public SystemOptionManager getSystemOptionManager()
public OptionValue getDefault(String optionName)
OptionSet
optionName
- The option to retrieve the default value for.protected OptionValue.OptionScope getScope()
getScope
in class BaseOptionManager
Copyright © 1970 The Apache Software Foundation. All rights reserved.