Class ExpectedShardSizeEstimator

java.lang.Object
org.elasticsearch.cluster.routing.ExpectedShardSizeEstimator

public class ExpectedShardSizeEstimator extends Object
  • Constructor Details

    • ExpectedShardSizeEstimator

      public ExpectedShardSizeEstimator()
  • Method Details

    • shouldReserveSpaceForInitializingShard

      public static boolean shouldReserveSpaceForInitializingShard(ShardRouting shard, RoutingAllocation allocation)
    • getExpectedShardSize

      public static long getExpectedShardSize(ShardRouting shard, long defaultSize, RoutingAllocation allocation)
    • shouldReserveSpaceForInitializingShard

      public static boolean shouldReserveSpaceForInitializingShard(ShardRouting shard, Metadata metadata)
    • getExpectedShardSize

      public static long getExpectedShardSize(ShardRouting shard, long defaultValue, ClusterInfo clusterInfo, SnapshotShardSizeInfo snapshotShardSizeInfo, Metadata metadata, RoutingTable routingTable)
      Returns the expected shard size for the given shard or the default value provided if not enough information are available to estimate the shards size.