Module org.elasticsearch.server
Interface ExpectedShardSizeEstimator.ShardSizeProvider
- All Known Implementing Classes:
ClusterInfo
- Enclosing class:
ExpectedShardSizeEstimator
public static interface ExpectedShardSizeEstimator.ShardSizeProvider
-
Method Summary
Modifier and TypeMethodDescriptiondefault LonggetShardSize(ShardRouting shardRouting) Returns the shard size for the given shard routing ornullif that metric is not available.default longgetShardSize(ShardRouting shardRouting, long defaultValue) Returns the shard size for the given shard routing ordefaultValueit that metric is not available.getShardSize(ShardId shardId, boolean primary) Returns the shard size for the given shardId ornullif that metric is not available.default longgetShardSize(ShardId shardId, boolean primary, long defaultValue) Returns the shard size for the given shard routing ordefaultValueit that metric is not available.
-
Method Details
-
getShardSize
Returns the shard size for the given shardId ornullif that metric is not available. -
getShardSize
Returns the shard size for the given shard routing ornullif that metric is not available. -
getShardSize
Returns the shard size for the given shard routing ordefaultValueit that metric is not available. -
getShardSize
Returns the shard size for the given shard routing ordefaultValueit that metric is not available.
-