org.elasticsearch.cluster.routing
Class PlainShardIterator

java.lang.Object
  extended by org.elasticsearch.cluster.routing.PlainShardsIterator
      extended by org.elasticsearch.cluster.routing.PlainShardIterator
All Implemented Interfaces:
ShardIterator, ShardsIterator

public class PlainShardIterator
extends PlainShardsIterator
implements ShardIterator


Constructor Summary
PlainShardIterator(ShardId shardId, List<ShardRouting> shards)
           
PlainShardIterator(ShardId shardId, List<ShardRouting> shards, int index)
           
 
Method Summary
 boolean equals(Object o)
           
 int hashCode()
           
 ShardIterator reset()
          Resets the iterator.
 ShardId shardId()
          The shard id this group relates to.
 
Methods inherited from class org.elasticsearch.cluster.routing.PlainShardsIterator
assignedReplicasIncludingRelocating, asUnordered, firstOrNull, nextOrNull, remaining, size, sizeActive
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.elasticsearch.cluster.routing.ShardsIterator
assignedReplicasIncludingRelocating, asUnordered, firstOrNull, nextOrNull, remaining, size, sizeActive
 

Constructor Detail

PlainShardIterator

public PlainShardIterator(ShardId shardId,
                          List<ShardRouting> shards)

PlainShardIterator

public PlainShardIterator(ShardId shardId,
                          List<ShardRouting> shards,
                          int index)
Method Detail

reset

public ShardIterator reset()
Description copied from interface: ShardsIterator
Resets the iterator.

Specified by:
reset in interface ShardIterator
Specified by:
reset in interface ShardsIterator
Overrides:
reset in class PlainShardsIterator

shardId

public ShardId shardId()
Description copied from interface: ShardIterator
The shard id this group relates to.

Specified by:
shardId in interface ShardIterator

equals

public boolean equals(Object o)
Specified by:
equals in interface ShardsIterator
Overrides:
equals in class Object

hashCode

public int hashCode()
Specified by:
hashCode in interface ShardsIterator
Overrides:
hashCode in class Object


Copyright © 2009-2012. All Rights Reserved.