Package org.opensearch.cluster
Class AbstractDiffable<T extends Diffable<T>>
java.lang.Object
org.opensearch.cluster.AbstractDiffable<T>
- All Implemented Interfaces:
Diffable<T>
,org.opensearch.core.common.io.stream.Writeable
- Direct Known Subclasses:
AliasMetadata
,ClusterBlocks
,ComponentTemplate
,ComposableIndexTemplate
,DataStream
,DiscoveryNodes
,GetDataStreamAction.Response.DataStreamInfo
,IndexRoutingTable
,IndexTemplateMetadata
,MappingMetadata
,PipelineConfiguration
,PipelineConfiguration
,RolloverInfo
,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.
- Opensearch.internal:
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.opensearch.core.common.io.stream.Writeable
org.opensearch.core.common.io.stream.Writeable.Reader<V>, org.opensearch.core.common.io.stream.Writeable.WriteableRegistry, org.opensearch.core.common.io.stream.Writeable.Writer<V>
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns serializable object representing differences between this and previousStatereadDiffFrom
(org.opensearch.core.common.io.stream.Writeable.Reader<T> reader, org.opensearch.core.common.io.stream.StreamInput in) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.opensearch.core.common.io.stream.Writeable
writeTo
-
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(org.opensearch.core.common.io.stream.Writeable.Reader<T> reader, org.opensearch.core.common.io.stream.StreamInput in) throws IOException - Throws:
IOException
-