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