Interface ShardRefCounted


public interface ShardRefCounted
Manages reference counting for ShardContext.
  • Field Details

  • Method Details

    • get

      org.elasticsearch.core.RefCounted get(int shardId)
      Parameters:
      shardId - The shard index used by DocVector.
      Returns:
      the RefCounted for the given shard. In production, this will almost always be a ShardContext.
    • fromList

      static ShardRefCounted fromList(List<? extends org.elasticsearch.core.RefCounted> refCounters)
    • fromShardContext

      static ShardRefCounted fromShardContext(ShardContext shardContext)
    • single

      static ShardRefCounted single(int index, org.elasticsearch.core.RefCounted refCounted)