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 org.springframework.data.elasticsearch.support.DefaultStringObjectMap
clear, containsKey, containsValue, entrySet, equals, forEach, fromJson, getOrDefault, hashCode, isEmpty, keySet, path, put, putAll, remove, size, toJson, valuesMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface java.util.Map
compute, computeIfAbsent, computeIfPresent, merge, putIfAbsent, remove, replace, replace, replaceAllMethods inherited from interface org.springframework.data.elasticsearch.support.StringObjectMap
append, get, getBoolean, getBooleanOrDefault, getBooleanOrDefault, getInt, getIntOrDefault, getIntOrDefault, getLong, getLongOrDefault, getLongOrDefault, getString, getStringOrDefault, getStringOrDefault
-
Constructor Details
-
Settings
public Settings() -
Settings
-
-
Method Details
-
parse
Creates aSettingsobject from the given JSON String- Parameters:
json- must not be null- Returns:
- Settings object
-
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.
-