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 class
DiffableStringMap.DiffableStringMapDiff
Represents 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 DiffableStringMap
EMPTY
-
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 DiffableStringMap
readFrom(StreamInput in)
void
writeTo(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 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:
entrySet
in interfacejava.util.Map<java.lang.String,java.lang.String>
- Specified by:
entrySet
in classjava.util.AbstractMap<java.lang.String,java.lang.String>
-
writeTo
Description copied from interface:Writeable
Write this into the StreamOutput. -
diff
Description copied from interface:Diffable
Returns serializable object representing differences between this and previousState- Specified by:
diff
in interfaceDiffable<DiffableStringMap>
-
readDiffFrom
- Throws:
java.io.IOException
-