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
Modifier and TypeClassDescriptionstatic class
Represents 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
-
Method Summary
Modifier and TypeMethodDescriptiondiff(DiffableStringMap previousState)
Returns serializable object representing differences between this and previousStateentrySet()
static Diff<DiffableStringMap>
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:
IOException
-
entrySet
-
writeTo
Description copied from interface:Writeable
Write this into the StreamOutput.- Specified by:
writeTo
in interfaceWriteable
- Throws:
IOException
-
diff
Description copied from interface:Diffable
Returns serializable object representing differences between this and previousState- Specified by:
diff
in interfaceDiffable<DiffableStringMap>
-
readDiffFrom
- Throws:
IOException
-