Module org.elasticsearch.server
Package org.elasticsearch.cluster
Interface SimpleDiffable<T extends Diffable<T>>
- All Known Implementing Classes:
AliasMetadata,ClusterBlocks,ComponentTemplate,ComposableIndexTemplate,DataStream,DataStreamAlias,DataStreamAutoShardingEvent,DataStreamFailureStore,DataStreamLifecycle,DataStreamOptions,DiscoveryNodes,GetDataStreamAction.Response.DataStreamInfo,IndexRoutingTable,IndexTemplateMetadata,InferenceFieldMetadata,MappingMetadata,MinimalServiceSettings,PipelineConfiguration,RegisteredPolicySnapshots.PolicySnapshot,ReservedStateErrorMetadata,ReservedStateHandlerMetadata,ReservedStateMetadata,RolloverInfo,SingleNodeShutdownMetadata,StoredScriptSource,Template
Simple 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 ClassesModifier and TypeInterfaceDescriptionstatic classSimpleDiffable.CompleteDiff<T extends Diffable<T>>Nested classes/interfaces inherited from interface org.elasticsearch.common.io.stream.Writeable
Writeable.Reader<V>, Writeable.Writer<V> -
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionReturns serializable object representing differences between this and previousStatestatic <V> Diff<V> empty()readDiffFrom(Writeable.Reader<T> reader, StreamInput in)
-
Field Details
-
EMPTY
-
-
Method Details
-
diff
Description copied from interface:DiffableReturns serializable object representing differences between this and previousState -
readDiffFrom
static <T extends Diffable<T>> Diff<T> readDiffFrom(Writeable.Reader<T> reader, StreamInput in) throws IOException - Throws:
IOException
-
empty
- Returns:
- empty diff instance that returns the input object when applied
-