Class Settings
java.lang.Object
org.springframework.data.elasticsearch.support.DefaultStringObjectMap<Settings>
org.springframework.data.elasticsearch.core.index.Settings
- All Implemented Interfaces:
Map<String,Object>, StringObjectMap<Settings>
class defining the settings for an index.
- Since:
- 4.2
- Author:
- Peter-Josef Meisch
-
Nested Class Summary
-
Constructor Summary
Constructors -
Method Summary
Methods inherited from class DefaultStringObjectMap
clear, containsKey, containsValue, entrySet, equals, forEach, fromJson, getOrDefault, hashCode, isEmpty, keySet, path, put, putAll, remove, size, toJson, valuesMethods inherited from interface Map
compute, computeIfAbsent, computeIfPresent, merge, putIfAbsent, remove, replace, replace, replaceAllMethods inherited from interface StringObjectMap
append, get, getBoolean, getBooleanOrDefault, getBooleanOrDefault, getInt, getIntOrDefault, getIntOrDefault, getLong, getLongOrDefault, getLongOrDefault, getString, getStringOrDefault, getStringOrDefault
-
Constructor Details
-
Settings
public Settings() -
Settings
-
-
Method Details
-
parse
-
toString
- Overrides:
toStringin classDefaultStringObjectMap<Settings>
-
get
-
merge
Merges some other settings onto this one. Other has higher priority on same keys.- Parameters:
other- the other settings. Must not be null- Since:
- 4.4
-
flatten
flattens the nested structure (JSON fields index/foo/bar/: value) into a flat structure (index.foo.bar: value)- Returns:
- Settings with the flattened elements.
-