Class OptionValue

java.lang.Object
org.apache.drill.exec.server.options.OptionValue
All Implemented Interfaces:
Comparable<OptionValue>

public class OptionValue extends Object implements Comparable<OptionValue>

An option value is used internally by an OptionManager to store a run-time setting. This setting, for example, could affect a query in an execution stage. Instances of this class are JSON serializable and can be stored in a persistent store (see SystemOptionManager.options), or in memory (see InMemoryOptionManager.options).

OptionValue.AccessibleScopes defines the scopes at which the option can be set. If it can be set at System level or Session level or so on. Whereas OptionValue.OptionScope defines the scope at which the option is being set. If the option is being set at the BOOT time the scope of the option is BOOT. If it is set at SYSTEM level the scope is SYSTEM. Although they look similar there is a fine level which differentiates both of them which is at which level of hierarchy they can be set and at what at level of hierarchy they were actually set.