Class DiffableStringMap
- java.lang.Object
-
- java.util.AbstractMap<String,String>
-
- org.elasticsearch.cluster.metadata.DiffableStringMap
-
public class DiffableStringMap extends AbstractMap<String,String> implements Diffable<DiffableStringMap>
This is aMap<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
AbstractMap.SimpleEntry<K extends Object,V extends Object>, AbstractMap.SimpleImmutableEntry<K extends Object,V extends Object>
-
Nested classes/interfaces inherited from interface java.util.Map
Map.Entry<K extends Object,V extends 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
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description Diff<DiffableStringMap>diff(DiffableStringMap previousState)Returns serializable object representing differences between this and previousStateSet<Map.Entry<String,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
-
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface java.util.Map
compute, computeIfAbsent, computeIfPresent, forEach, getOrDefault, merge, putIfAbsent, remove, replace, replace, replaceAll
-
-
-
-
Field Detail
-
EMPTY
public static final DiffableStringMap EMPTY
-
-
Method Detail
-
writeTo
public void writeTo(StreamOutput out) throws IOException
Description copied from interface:WriteableWrite this into the StreamOutput.- Specified by:
writeToin interfaceWriteable- Throws:
IOException
-
diff
public Diff<DiffableStringMap> diff(DiffableStringMap previousState)
Description copied from interface:DiffableReturns serializable object representing differences between this and previousState- Specified by:
diffin interfaceDiffable<DiffableStringMap>
-
readDiffFrom
public static Diff<DiffableStringMap> readDiffFrom(StreamInput in) throws IOException
- Throws:
IOException
-
-