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).
  • 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