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 java.lang.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 Type Method Description IndexGraveyardapply(MetaData.Custom previous)Applies difference to the specified part and returns the resulted partjava.util.List<IndexGraveyard.Tombstone>getAdded()The index tombstones that were added between two statesintgetRemovedCount()The number of index tombstones that were removed between two statesjava.lang.StringgetWriteableName()Returns the name of the writeable objectvoidwriteTo(StreamOutput out)Write this into the StreamOutput.-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.elasticsearch.cluster.NamedDiff
getMinimalSupportedVersion
-
-
-
-
Method Detail
-
writeTo
public void writeTo(StreamOutput out) throws java.io.IOException
Description copied from interface:WriteableWrite this into the StreamOutput.
-
apply
public IndexGraveyard apply(MetaData.Custom previous)
Description copied from interface:DiffApplies difference to the specified part and returns the resulted part- Specified by:
applyin interfaceDiff<MetaData.Custom>
-
getAdded
public java.util.List<IndexGraveyard.Tombstone> 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
public java.lang.String getWriteableName()
Description copied from interface:NamedWriteableReturns the name of the writeable object- Specified by:
getWriteableNamein interfaceNamedWriteable
-
-