Module org.elasticsearch.server
Package org.elasticsearch.cluster
Class DiffableUtils.MapDiff<K,T,M extends Map<K,T>>   
java.lang.Object
org.elasticsearch.cluster.DiffableUtils.MapDiff<K,T,M>  
- Type Parameters:
- K- the type of map keys
- T- the type of map values
- Enclosing class:
- DiffableUtils
Represents differences between two maps of objects and is used as base class for different map implementations.
 Implements serialization. How differences are applied is left to subclasses.
- 
Nested Class SummaryNested classes/interfaces inherited from interface org.elasticsearch.common.io.stream.WriteableWriteable.Reader<V>, Writeable.Writer<V>
- 
Field SummaryFields
- 
Method SummaryModifier and TypeMethodDescriptionApplies difference to the specified part and returns the resulted partThe keys that, when this diff is applied to a map, should be removed from the map.getDiffs()Map entries that, when this diff is applied to a map, should be incrementally updated.Map entries that, when this diff is applied to a map, should be added to the map or fully replace the previous value.voidwriteTo(StreamOutput out) Write this into the StreamOutput.
- 
Field Details- 
deletes
- 
diffs
- 
upserts
- 
keySerializer
- 
valueSerializer
 
- 
- 
Method Details- 
applyDescription copied from interface:DiffApplies difference to the specified part and returns the resulted part
- 
getDeletesThe keys that, when this diff is applied to a map, should be removed from the map.- Returns:
- the list of keys that are deleted
 
- 
getDiffsMap entries that, when this diff is applied to a map, should be incrementally updated. The incremental update is represented using theDiffinterface.- Returns:
- the map entries that are incrementally updated
 
- 
getUpsertsMap entries that, when this diff is applied to a map, should be added to the map or fully replace the previous value.- Returns:
- the map entries that are additions or full updates
 
- 
writeToDescription copied from interface:WriteableWrite this into the StreamOutput.- Specified by:
- writeToin interface- Writeable
- Throws:
- IOException
 
 
-