Class FallbackOptionManager
java.lang.Object
org.apache.drill.exec.server.options.BaseOptionManager
org.apache.drill.exec.server.options.FallbackOptionManager
- All Implemented Interfaces:
Iterable<OptionValue>,OptionManager,OptionSet
- Direct Known Subclasses:
InMemoryOptionManager
An
OptionManager which allows for falling back onto another
OptionManager when retrieving options.
FragmentOptionManager and SessionOptionManager use
SystemOptionManager as the fall back manager.
QueryOptionManager uses SessionOptionManager as the fall back
manager.-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGets the option value for the given option name.getOptionDefinition(String name) Get the option definition corresponding to the given option name.Gets the list of options managed this manager.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, setLocalOptionHelperMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface java.lang.Iterable
forEach, spliteratorMethods inherited from interface org.apache.drill.exec.server.options.OptionManager
deleteAllLocalOptions, deleteLocalOptionMethods inherited from interface org.apache.drill.exec.server.options.OptionSet
getDefault
-
Field Details
-
fallback
-
-
Constructor Details
-
FallbackOptionManager
-
-
Method Details
-
iterator
-
getOption
Description copied from interface:OptionSetGets the option value for the given option name. This interface also provides convenient methods to get typed option values:OptionSet.getOption(TypeValidators.BooleanValidator validator),OptionSet.getOption(TypeValidators.DoubleValidator validator),OptionSet.getOption(TypeValidators.LongValidator validator), andOptionSet.getOption(TypeValidators.StringValidator validator).- Parameters:
name- option name- Returns:
- the option value, null if the option does not exist
-
getOptionDefinition
Description copied from interface:OptionManagerGet the option definition corresponding to the given option name.- Parameters:
name- The name of the option to retrieve a validator for.- Returns:
- The option validator corresponding to the given option name.
-
getOptionList
Description copied from interface:OptionManagerGets the list of options managed this manager.- Returns:
- the list of options
-