Module org.elasticsearch.server
Class IndexGraveyard.IndexGraveyardDiff
java.lang.Object
org.elasticsearch.cluster.metadata.IndexGraveyard.IndexGraveyardDiff
- All Implemented Interfaces:
Diff<Metadata.Custom>,NamedDiff<Metadata.Custom>,NamedWriteable,Writeable
- Enclosing class:
IndexGraveyard
public static final class IndexGraveyard.IndexGraveyardDiff
extends Object
implements NamedDiff<Metadata.Custom>
A class representing a diff of two IndexGraveyard objects.
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.elasticsearch.common.io.stream.Writeable
Writeable.Reader<V>, Writeable.Writer<V> -
Method Summary
Modifier and TypeMethodDescriptionapply(Metadata.Custom previous) Applies difference to the specified part and returns the resulted partgetAdded()The index tombstones that were added between two statesThe minimal version of the recipient this custom object can be sent tointThe number of index tombstones that were removed between two statesReturns the name of the writeable objectvoidwriteTo(StreamOutput out) Write this into the StreamOutput.
-
Method Details
-
writeTo
Description copied from interface:WriteableWrite this into the StreamOutput.- Specified by:
writeToin interfaceWriteable- Throws:
IOException
-
apply
Description copied from interface:DiffApplies difference to the specified part and returns the resulted part- Specified by:
applyin interfaceDiff<Metadata.Custom>
-
getAdded
The index tombstones that were added between two states -
getRemovedCount
public int getRemovedCount()The number of index tombstones that were removed between two states -
getWriteableName
Description copied from interface:NamedWriteableReturns the name of the writeable object- Specified by:
getWriteableNamein interfaceNamedWriteable
-
getMinimalSupportedVersion
Description copied from interface:NamedDiffThe minimal version of the recipient this custom object can be sent to- Specified by:
getMinimalSupportedVersionin interfaceNamedDiff<Metadata.Custom>
-