Class InMemoryOptionManager
java.lang.Object
org.apache.drill.exec.server.options.BaseOptionManager
org.apache.drill.exec.server.options.FallbackOptionManager
org.apache.drill.exec.server.options.InMemoryOptionManager
- All Implemented Interfaces:
Iterable<OptionValue>
,OptionManager
,OptionSet
- Direct Known Subclasses:
FragmentOptionManager
,QueryOptionManager
,SessionOptionManager
This is an
OptionManager
that holds options in memory rather than in
a persistent store. Options stored in SessionOptionManager
,
QueryOptionManager
, and FragmentOptionManager
are held in
memory (see options
) whereas the SystemOptionManager
stores
options in a persistent store.-
Field Summary
Fields inherited from class org.apache.drill.exec.server.options.FallbackOptionManager
fallback
-
Method Summary
Modifier and TypeMethodDescriptionvoid
Deletes all options.void
deleteLocalOption
(String name) Deletes the option.void
setLocalOptionHelper
(OptionValue value) Methods inherited from class org.apache.drill.exec.server.options.FallbackOptionManager
getOption, getOptionDefinition, getOptionList, iterator
Methods inherited from class org.apache.drill.exec.server.options.BaseOptionManager
getBoolean, getDouble, getInt, getInternalOptionList, getLong, getOption, getOption, getOption, getOption, getPublicOptionList, getScope, getString, setLocalOption, setLocalOption, setLocalOption, setLocalOption, setLocalOption, setLocalOption
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface java.lang.Iterable
forEach, spliterator
Methods inherited from interface org.apache.drill.exec.server.options.OptionSet
getDefault
-
Field Details
-
options
-
-
Method Details
-
setLocalOptionHelper
- Specified by:
setLocalOptionHelper
in classBaseOptionManager
-
deleteAllLocalOptions
public void deleteAllLocalOptions()Description copied from interface:OptionManager
Deletes all options. If no options are set, calling this method should be no-op. -
deleteLocalOption
Description copied from interface:OptionManager
Deletes the option. If the option name is valid (exists in the set of validators produced bySystemOptionManager.createDefaultOptionDefinitions()
), but the option was not set within this manager, calling this method should be a no-op.- Parameters:
name
- option name
-