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)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, values
-
Field Details
-
Method Details
-
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
-