public static class Setting.AffixSetting<T> extends Setting<T>
Setting.AffixKey, Setting.AffixSetting<T>, Setting.GroupKey, Setting.Key, Setting.ListKey, Setting.Property, Setting.SimpleKey
ToXContent.DelegatingMapParams, ToXContent.MapParams, ToXContent.Params
defaultValue
EMPTY_PARAMS
Constructor and Description |
---|
AffixSetting(Setting.AffixKey key,
Setting<T> delegate,
java.util.function.Function<java.lang.String,Setting<T>> delegateFactory) |
Modifier and Type | Method and Description |
---|---|
void |
diff(Settings.Builder builder,
Settings source,
Settings defaultSettings)
Add this setting to the builder if it doesn't exists in the source settings.
|
T |
get(Settings settings)
Returns the settings value.
|
java.util.stream.Stream<Setting<T>> |
getAllConcreteSettings(Settings settings)
Returns a stream of all concrete setting instances for the given settings.
|
Setting<T> |
getConcreteSetting(java.lang.String key) |
Setting<T> |
getConcreteSettingForNamespace(java.lang.String namespace)
Get a setting with the given namespace filled in for prefix and suffix.
|
java.lang.String |
getNamespace(Setting<T> concreteSetting)
Returns the namespace for a concrete settting.
|
java.lang.String |
getRaw(Settings settings)
Returns the raw (string) settings value.
|
affixKeySetting, boolSetting, boolSetting, boolSetting, byteSizeSetting, byteSizeSetting, byteSizeSetting, byteSizeSetting, byteSizeSetting, doubleSetting, equals, exists, floatSetting, floatSetting, get, getDefault, getDefaultRaw, getKey, getProperties, getRawKey, groupSetting, groupSetting, hashCode, hasIndexScope, hasNodeScope, intSetting, intSetting, intSetting, intSetting, isDeprecated, isDynamic, isFiltered, isFinal, isShared, listSetting, listSetting, listSetting, longSetting, match, memorySizeSetting, memorySizeSetting, memorySizeSetting, parseByteSize, parseInt, parseInt, parseLong, parseTimeValue, positiveTimeSetting, prefixKeySetting, simpleString, timeSetting, timeSetting, timeSetting, timeSetting, toXContent
buildAsBytes, buildAsBytes, toString, toString
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
isFragment
public AffixSetting(Setting.AffixKey key, Setting<T> delegate, java.util.function.Function<java.lang.String,Setting<T>> delegateFactory)
public T get(Settings settings)
Setting
public java.lang.String getRaw(Settings settings)
Setting
public Setting<T> getConcreteSetting(java.lang.String key)
getConcreteSetting
in class Setting<T>
public Setting<T> getConcreteSettingForNamespace(java.lang.String namespace)
public void diff(Settings.Builder builder, Settings source, Settings defaultSettings)
Setting
public java.lang.String getNamespace(Setting<T> concreteSetting)