Class AbstractDiffable<T extends Diffable<T>>

java.lang.Object
org.elasticsearch.cluster.AbstractDiffable<T>
All Implemented Interfaces:
Diffable<T>, Writeable
Direct Known Subclasses:
AliasMetadata, ClusterBlocks, ComponentTemplate, ComposableIndexTemplate, DataStream, DiscoveryNodes, IndexRoutingTable, IndexTemplateMetadata, MappingMetadata, PipelineConfiguration, RolloverInfo, RollupGroup, StoredScriptSource, Template

public abstract class AbstractDiffable<T extends Diffable<T>>
extends java.lang.Object
implements Diffable<T>
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

    Constructors
    Constructor Description
    AbstractDiffable()  
  • Method Summary

    Modifier and Type Method Description
    Diff<T> diff​(T previousState)
    Returns serializable object representing differences between this and previousState
    static <T extends Diffable<T>>
    Diff<T>
    readDiffFrom​(Writeable.Reader<T> reader, 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.elasticsearch.common.io.stream.Writeable

    writeTo
  • Constructor Details

    • AbstractDiffable

      public AbstractDiffable()
  • Method Details

    • diff

      public Diff<T> diff​(T previousState)
      Description copied from interface: Diffable
      Returns serializable object representing differences between this and previousState
      Specified by:
      diff in interface Diffable<T extends Diffable<T>>
    • readDiffFrom

      public static <T extends Diffable<T>> Diff<T> readDiffFrom​(Writeable.Reader<T> reader, StreamInput in) throws java.io.IOException
      Throws:
      java.io.IOException