Module org.elasticsearch.server
Class IndexReshardingState
java.lang.Object
org.elasticsearch.cluster.metadata.IndexReshardingState
- All Implemented Interfaces:
Writeable,ToXContent,ToXContentFragment
- Direct Known Subclasses:
IndexReshardingState.Noop,IndexReshardingState.Split
public abstract sealed class IndexReshardingState
extends Object
implements Writeable, ToXContentFragment
permits IndexReshardingState.Noop, IndexReshardingState.Split
IndexReshardingState is an abstract class holding the persistent state of a generic resharding operation. It contains
concrete subclasses for the operations that are currently defined (which is only split for now).
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classstatic final classNested classes/interfaces inherited from interface org.elasticsearch.xcontent.ToXContent
ToXContent.DelegatingMapParams, ToXContent.MapParams, ToXContent.ParamsNested classes/interfaces inherited from interface org.elasticsearch.common.io.stream.Writeable
Writeable.Reader<V>, Writeable.Writer<V> -
Field Summary
Fields inherited from interface org.elasticsearch.xcontent.ToXContent
EMPTY, EMPTY_PARAMS -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.elasticsearch.xcontent.ToXContent
toXContentMethods inherited from interface org.elasticsearch.xcontent.ToXContentFragment
isFragment
-
Constructor Details
-
IndexReshardingState
public IndexReshardingState()
-
-
Method Details
-
shardCountBefore
public abstract int shardCountBefore()- Returns:
- the number of shards the index has at the start of this operation
-
shardCountAfter
public abstract int shardCountAfter()- Returns:
- the number of shards that the index will have when resharding completes
-