Class BaseOptionManager
java.lang.Object
org.apache.drill.exec.server.options.BaseOptionManager
- All Implemented Interfaces:
Iterable<OptionValue>,OptionManager,OptionSet
- Direct Known Subclasses:
FallbackOptionManager,SystemOptionManager
This
OptionManager implements some the basic methods and should be
extended by concrete implementations.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleangetBoolean(String name) Return the value of a Boolean option.doubleReturn the value of a double option.intReturn the value of a long option as an intReturns all the internal options contained in this option manager.longReturn the value of a long option.booleangetOption(TypeValidators.BooleanValidator validator) Gets the boolean value (from the option value) for the given boolean validator.doublegetOption(TypeValidators.DoubleValidator validator) Gets the double value (from the option value) for the given double validator.longgetOption(TypeValidators.LongValidator validator) Gets the long value (from the option value) for the given long validator.getOption(TypeValidators.StringValidator validator) Gets the string value (from the option value) for the given string validator.Returns all the public options contained in this option manager.protected abstract OptionValue.OptionScopegetScope()Return the value of a String option.voidsetLocalOption(String name, boolean value) Sets a boolean option on theOptionManager.voidsetLocalOption(String name, double value) Sets a double option on theOptionManager.voidsetLocalOption(String name, long value) Sets a long option on theOptionManager.voidsetLocalOption(String name, Object value) Sets an option on theOptionManager.voidsetLocalOption(String name, String value) Sets a String option on theOptionManager.voidsetLocalOption(OptionValue.Kind kind, String name, String valueStr) Sets an option of the specifiedOptionValue.Kindon theOptionManager.protected abstract voidsetLocalOptionHelper(OptionValue optionValue) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface java.lang.Iterable
forEach, iterator, spliteratorMethods inherited from interface org.apache.drill.exec.server.options.OptionManager
deleteAllLocalOptions, deleteLocalOption, getOptionDefinition, getOptionListMethods inherited from interface org.apache.drill.exec.server.options.OptionSet
getDefault, getOption
-
Constructor Details
-
BaseOptionManager
public BaseOptionManager()
-
-
Method Details
-
getOption
Description copied from interface:OptionSetGets the boolean value (from the option value) for the given boolean validator. -
getOption
Description copied from interface:OptionSetGets the double value (from the option value) for the given double validator. -
getOption
Description copied from interface:OptionSetGets the long value (from the option value) for the given long validator. -
getOption
Description copied from interface:OptionSetGets the string value (from the option value) for the given string validator. -
getBoolean
Description copied from interface:OptionSetReturn the value of a Boolean option.- Specified by:
getBooleanin interfaceOptionSet- Parameters:
name- option name- Returns:
- the Boolean value
-
getInt
Description copied from interface:OptionSetReturn the value of a long option as an int -
getLong
Description copied from interface:OptionSetReturn the value of a long option. -
getDouble
Description copied from interface:OptionSetReturn the value of a double option. -
getString
Description copied from interface:OptionSetReturn the value of a String option. -
getInternalOptionList
Description copied from interface:OptionManagerReturns all the internal options contained in this option manager.- Specified by:
getInternalOptionListin interfaceOptionManager- Returns:
- All the internal options contained in this option manager.
-
getPublicOptionList
Description copied from interface:OptionManagerReturns all the public options contained in this option manager.- Specified by:
getPublicOptionListin interfaceOptionManager- Returns:
- All the public options contained in this option manager.
-
setLocalOption
Description copied from interface:OptionManagerSets a boolean option on theOptionManager.- Specified by:
setLocalOptionin interfaceOptionManager- Parameters:
name- The name of the option.value- The value of the option.
-
setLocalOption
Description copied from interface:OptionManagerSets a long option on theOptionManager.- Specified by:
setLocalOptionin interfaceOptionManager- Parameters:
name- The name of the option.value- The value of the option.
-
setLocalOption
Description copied from interface:OptionManagerSets a double option on theOptionManager.- Specified by:
setLocalOptionin interfaceOptionManager- Parameters:
name- The name of the option.value- The value of the option.
-
setLocalOption
Description copied from interface:OptionManagerSets a String option on theOptionManager.- Specified by:
setLocalOptionin interfaceOptionManager- Parameters:
name- The name of the option.value- The value of the option.
-
setLocalOption
Description copied from interface:OptionManagerSets an option on theOptionManager.- Specified by:
setLocalOptionin interfaceOptionManager- Parameters:
name- The name of the option.value- The value of the option.
-
setLocalOption
Description copied from interface:OptionManagerSets an option of the specifiedOptionValue.Kindon theOptionManager.- Specified by:
setLocalOptionin interfaceOptionManager- Parameters:
kind- The kind of the option.name- The name of the option.valueStr- The value of the option.
-
setLocalOptionHelper
-
getScope
-