Class DiffableStringMap
public class DiffableStringMap
extends AbstractMap<String,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 ClassesModifier and TypeClassDescriptionstatic classRepresents 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 -
Method Summary
Modifier and TypeMethodDescriptiondiff(DiffableStringMap previousState)Returns serializable object representing differences between this and previousStateentrySet()static Diff<DiffableStringMap>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:
IOException
-
entrySet
-
writeTo
Description copied from interface:WriteableWrite this into the StreamOutput.- Specified by:
writeToin interfaceWriteable- Throws:
IOException
-
diff
Description copied from interface:DiffableReturns serializable object representing differences between this and previousState- Specified by:
diffin interfaceDiffable<DiffableStringMap>
-
readDiffFrom
- Throws:
IOException
-