Class DiffableStringMap
java.lang.Object
java.util.AbstractMap<java.lang.String,java.lang.String>
org.elasticsearch.cluster.metadata.DiffableStringMap
- All Implemented Interfaces:
java.util.Map<java.lang.String,java.lang.String>,Diffable<DiffableStringMap>,Writeable
public class DiffableStringMap extends java.util.AbstractMap<java.lang.String,java.lang.String> implements Diffable<DiffableStringMap>
This is a
Map<String, String> that implements AbstractDiffable so it
can be used for cluster state purposes-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classDiffableStringMap.DiffableStringMapDiffRepresents differences between two DiffableStringMaps.Nested classes/interfaces inherited from class java.util.AbstractMap
java.util.AbstractMap.SimpleEntry<K extends java.lang.Object,V extends java.lang.Object>, java.util.AbstractMap.SimpleImmutableEntry<K extends java.lang.Object,V extends java.lang.Object>Nested classes/interfaces inherited from interface java.util.Map
java.util.Map.Entry<K extends java.lang.Object,V extends java.lang.Object>Nested classes/interfaces inherited from interface org.elasticsearch.common.io.stream.Writeable
Writeable.Reader<V>, Writeable.Writer<V> -
Field Summary
Fields Modifier and Type Field Description static DiffableStringMapEMPTY -
Method Summary
Modifier and Type Method Description Diff<DiffableStringMap>diff(DiffableStringMap previousState)Returns serializable object representing differences between this and previousStatejava.util.Set<java.util.Map.Entry<java.lang.String,java.lang.String>>entrySet()static Diff<DiffableStringMap>readDiffFrom(StreamInput in)static DiffableStringMapreadFrom(StreamInput in)voidwriteTo(StreamOutput out)Write this into the StreamOutput.Methods inherited from class java.util.AbstractMap
clear, clone, containsKey, containsValue, equals, get, hashCode, isEmpty, keySet, put, putAll, remove, size, toString, valuesMethods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface java.util.Map
compute, computeIfAbsent, computeIfPresent, forEach, getOrDefault, merge, putIfAbsent, remove, replace, replace, replaceAll
-
Field Details
-
EMPTY
-
-
Method Details
-
readFrom
- Throws:
java.io.IOException
-
entrySet
public java.util.Set<java.util.Map.Entry<java.lang.String,java.lang.String>> entrySet()- Specified by:
entrySetin interfacejava.util.Map<java.lang.String,java.lang.String>- Specified by:
entrySetin classjava.util.AbstractMap<java.lang.String,java.lang.String>
-
writeTo
Description copied from interface:WriteableWrite this into the StreamOutput. -
diff
Description copied from interface:DiffableReturns serializable object representing differences between this and previousState- Specified by:
diffin interfaceDiffable<DiffableStringMap>
-
readDiffFrom
- Throws:
java.io.IOException
-