java.lang.Object
org.elasticsearch.common.util.PlainIterator<ShardRouting>
org.elasticsearch.cluster.routing.PlainShardsIterator
org.elasticsearch.cluster.routing.ShardIterator
org.elasticsearch.cluster.routing.SearchShardRouting
- All Implemented Interfaces:
Comparable<ShardIterator>,Iterable<ShardRouting>,ShardsIterator
Contains an iterator of shards for a given
shard id and additional routing-related metadata needed to
execute searches on these shards.-
Constructor Summary
ConstructorsConstructorDescriptionSearchShardRouting(ShardId shardId, List<ShardRouting> shards, SplitShardCountSummary reshardSplitShardCountSummary) -
Method Summary
Modifier and TypeMethodDescriptionstatic SearchShardRoutingfromShardIterator(ShardIterator shardIterator, SplitShardCountSummary reshardSplitShardCountSummary) Methods inherited from class org.elasticsearch.cluster.routing.ShardIterator
allSearchableShards, compareTo, equals, hashCode, shardIdMethods inherited from class org.elasticsearch.cluster.routing.PlainShardsIterator
getShardRoutings, sizeActiveMethods inherited from class org.elasticsearch.common.util.PlainIterator
asList, iterator, nextOrNull, remaining, reset, sizeMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface java.lang.Iterable
forEach, iterator, spliteratorMethods inherited from interface org.elasticsearch.cluster.routing.ShardsIterator
nextOrNull
-
Constructor Details
-
SearchShardRouting
public SearchShardRouting(ShardId shardId, List<ShardRouting> shards, SplitShardCountSummary reshardSplitShardCountSummary)
-
-
Method Details
-
reshardSplitShardCountSummary
-
fromShardIterator
public static SearchShardRouting fromShardIterator(ShardIterator shardIterator, SplitShardCountSummary reshardSplitShardCountSummary)
-