Package org.elasticsearch.cluster
Class AbstractDiffable<T extends Diffable<T>>
java.lang.Object
org.elasticsearch.cluster.AbstractDiffable<T>
- Direct Known Subclasses:
AliasMetadata
,ClusterBlocks
,ComponentTemplate
,ComposableIndexTemplate
,DataStream
,DataStreamAlias
,DiscoveryNodes
,IndexRoutingTable
,IndexTemplateMetadata
,MappingMetadata
,PipelineConfiguration
,RolloverInfo
,SingleNodeShutdownMetadata
,StoredScriptSource
,Template
Abstract diffable object with simple diffs implementation that sends the entire object if object has changed or
nothing if object remained the same.
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.elasticsearch.common.io.stream.Writeable
Writeable.Reader<V>, Writeable.Writer<V>
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionReturns serializable object representing differences between this and previousStatereadDiffFrom(Writeable.Reader<T> reader, StreamInput in)
-
Constructor Details
-
AbstractDiffable
public AbstractDiffable()
-
-
Method Details
-
diff
Description copied from interface:Diffable
Returns serializable object representing differences between this and previousState -
readDiffFrom
public static <T extends Diffable<T>> Diff<T> readDiffFrom(Writeable.Reader<T> reader, StreamInput in) throws IOException- Throws:
IOException
-