Interface ExpectedShardSizeEstimator.ShardSizeProvider

All Known Implementing Classes:
ClusterInfo
Enclosing class:
ExpectedShardSizeEstimator

public static interface ExpectedShardSizeEstimator.ShardSizeProvider
  • Method Summary

    Modifier and Type
    Method
    Description
    default Long
    getShardSize(ShardRouting shardRouting)
    Returns the shard size for the given shard routing or null if that metric is not available.
    default long
    getShardSize(ShardRouting shardRouting, long defaultValue)
    Returns the shard size for the given shard routing or defaultValue it that metric is not available.
    getShardSize(ShardId shardId, boolean primary)
    Returns the shard size for the given shardId or null if that metric is not available.
    default long
    getShardSize(ShardId shardId, boolean primary, long defaultValue)
    Returns the shard size for the given shard routing or defaultValue it that metric is not available.
  • Method Details

    • getShardSize

      Long getShardSize(ShardId shardId, boolean primary)
      Returns the shard size for the given shardId or null if that metric is not available.
    • getShardSize

      default Long getShardSize(ShardRouting shardRouting)
      Returns the shard size for the given shard routing or null if that metric is not available.
    • getShardSize

      default long getShardSize(ShardRouting shardRouting, long defaultValue)
      Returns the shard size for the given shard routing or defaultValue it that metric is not available.
    • getShardSize

      default long getShardSize(ShardId shardId, boolean primary, long defaultValue)
      Returns the shard size for the given shard routing or defaultValue it that metric is not available.