public final class SearchShardIterator extends PlainShardIterator
PlainShardIterator
used in the search api, which also holds the OriginalIndices
of the search request. Useful especially with cross cluster search, as each cluster has its own set of original indices.Constructor and Description |
---|
SearchShardIterator(java.lang.String clusterAlias,
ShardId shardId,
java.util.List<ShardRouting> shards,
OriginalIndices originalIndices)
Creates a
PlainShardIterator instance that iterates over a subset of the given shards
this the a given shardId . |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getClusterAlias() |
OriginalIndices |
getOriginalIndices()
Returns the original indices associated with this shard iterator, specifically with the cluster that this shard belongs to.
|
compareTo, equals, hashCode, shardId
getShardRoutings, iterator, nextOrNull, remaining, reset, size, sizeActive
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
reset
getShardRoutings, nextOrNull, remaining, size, sizeActive
public SearchShardIterator(java.lang.String clusterAlias, ShardId shardId, java.util.List<ShardRouting> shards, OriginalIndices originalIndices)
PlainShardIterator
instance that iterates over a subset of the given shards
this the a given shardId
.shardId
- shard id of the groupshards
- shards to iteratepublic OriginalIndices getOriginalIndices()
public java.lang.String getClusterAlias()