Module org.elasticsearch.server
Class ExpectedShardSizeEstimator
java.lang.Object
org.elasticsearch.cluster.routing.ExpectedShardSizeEstimator
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic 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.static long
getExpectedShardSize
(ShardRouting shard, long defaultSize, RoutingAllocation allocation) static boolean
shouldReserveSpaceForInitializingShard
(ShardRouting shard, Metadata metadata) static boolean
shouldReserveSpaceForInitializingShard
(ShardRouting shard, RoutingAllocation allocation)
-
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
-
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.
-