Class Setting.AffixSetting<T>
java.lang.Object
org.elasticsearch.common.settings.Setting<T>
org.elasticsearch.common.settings.Setting.AffixSetting<T>
- All Implemented Interfaces:
org.elasticsearch.common.xcontent.ToXContent
,org.elasticsearch.common.xcontent.ToXContentObject
-
Nested Class Summary
Nested classes/interfaces inherited from class org.elasticsearch.common.settings.Setting
Setting.AffixKey, Setting.AffixSetting<T>, Setting.AffixSettingDependency, Setting.GroupKey, Setting.Key, Setting.ListKey, Setting.Property, Setting.SettingDependency, Setting.SimpleKey, Setting.Validator<T>
Nested classes/interfaces inherited from interface org.elasticsearch.common.xcontent.ToXContent
org.elasticsearch.common.xcontent.ToXContent.DelegatingMapParams, org.elasticsearch.common.xcontent.ToXContent.MapParams, org.elasticsearch.common.xcontent.ToXContent.Params
-
Field Summary
Fields inherited from class org.elasticsearch.common.settings.Setting
defaultValue
Fields inherited from interface org.elasticsearch.common.xcontent.ToXContent
EMPTY_PARAMS
-
Constructor Summary
ConstructorDescriptionAffixSetting(Setting.AffixKey key, Setting<T> delegate, BiFunction<String,String,Setting<T>> delegateFactory, Setting.AffixSettingDependency... dependencies)
-
Method Summary
Modifier and TypeMethodDescriptionvoid
diff(Settings.Builder builder, Settings source, Settings defaultSettings)
Add this setting to the builder if it doesn't exists in the source settings.Returns the settings value.getAllConcreteSettings(Settings settings)
Returns a stream of all concrete setting instances for the given settings.Returns a map of all namespaces to it's values give the provided settingsgetConcreteSetting(String key)
getConcreteSettingForNamespace(String namespace)
Get a setting with the given namespace filled in for prefix and suffix.Get the raw list of dependencies.getNamespace(Setting<T> concreteSetting)
Returns the namespace for a concrete setting.getNamespaces(Settings settings)
Returns distinct namespaces for the given settingsgetSettingsDependencies(String settingsKey)
Returns a set of settings that are required at validation time.innerGetRaw(Settings settings)
Methods inherited from class org.elasticsearch.common.settings.Setting
affixKeySetting, affixKeySetting, boolSetting, boolSetting, boolSetting, boolSetting, boolSetting, byteSizeSetting, byteSizeSetting, byteSizeSetting, byteSizeSetting, byteSizeSetting, doubleSetting, doubleSetting, enumSetting, enumSetting, equals, exists, exists, existsOrFallbackExists, floatSetting, floatSetting, get, getDefault, getDefaultRaw, getKey, getProperties, getRawKey, groupSetting, groupSetting, hashCode, hasIndexScope, hasNodeScope, intSetting, intSetting, intSetting, intSetting, intSetting, intSetting, intSetting, isConsistent, isDeprecated, isDynamic, isFiltered, isFinal, isInternalIndex, isOperatorOnly, isPrivateIndex, isSecure, listSetting, listSetting, listSetting, listSetting, listSetting, listSetting, listSetting, longSetting, match, memorySizeSetting, memorySizeSetting, memorySizeSetting, parseByteSize, parseInt, parseInt, parseInt, parseInt, parseLong, parseTimeValue, positiveTimeSetting, positiveTimeSetting, prefixKeySetting, simpleString, simpleString, simpleString, simpleString, simpleString, simpleString, simpleString, timeSetting, timeSetting, timeSetting, timeSetting, timeSetting, timeSetting, timeSetting, toString, toXContent, versionSetting
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface org.elasticsearch.common.xcontent.ToXContentObject
isFragment
-
Constructor Details
-
AffixSetting
public AffixSetting(Setting.AffixKey key, Setting<T> delegate, BiFunction<String,String,Setting<T>> delegateFactory, Setting.AffixSettingDependency... dependencies)
-
-
Method Details
-
getDependencies
Get the raw list of dependencies. This method is exposed for testing purposes andgetSettingsDependencies(String)
should be preferred for most all cases.- Returns:
- the raw list of dependencies for this setting
-
getSettingsDependencies
Description copied from class:Setting
Returns a set of settings that are required at validation time. Unless all of the dependencies are present in the settings object validation of setting must fail.- Overrides:
getSettingsDependencies
in classSetting<T>
-
get
Description copied from class:Setting
Returns the settings value. If the setting is not present in the given settings object the default value is returned instead. -
innerGetRaw
-
getConcreteSetting
- Overrides:
getConcreteSetting
in classSetting<T>
-
getConcreteSettingForNamespace
Get a setting with the given namespace filled in for prefix and suffix. -
diff
Description copied from class:Setting
Add this setting to the builder if it doesn't exists in the source settings. The value added to the builder is taken from the given default settings object. -
getNamespace
Returns the namespace for a concrete setting. Ie. an affix setting with prefix:search.
and suffix:username
will returnremote
as a namespace for the settingcluster.remote.username
-
getAllConcreteSettings
Returns a stream of all concrete setting instances for the given settings. AffixSetting is only a specification, concrete settings depend on an actual set of setting keys. -
getNamespaces
Returns distinct namespaces for the given settings -
getAsMap
Returns a map of all namespaces to it's values give the provided settings
-