org.elasticsearch.cluster.routing
Interface ShardsIterator

All Known Subinterfaces:
ShardIterator
All Known Implementing Classes:
PlainShardIterator, PlainShardsIterator

public interface ShardsIterator

Allows to iterate over unrelated shards.


Method Summary
 int assignedReplicasIncludingRelocating()
           
 Iterable<ShardRouting> asUnordered()
           
 boolean equals(Object other)
           
 ShardRouting firstOrNull()
          Returns the first shard, or null, without incrementing the iterator.
 int hashCode()
           
 ShardRouting nextOrNull()
          Returns the next shard, or null if none available.
 int remaining()
           
 ShardsIterator reset()
          Resets the iterator.
 int size()
          The number of shard routing instances.
 int sizeActive()
           
 

Method Detail

reset

ShardsIterator reset()
Resets the iterator.


size

int size()
The number of shard routing instances.


sizeActive

int sizeActive()

assignedReplicasIncludingRelocating

int assignedReplicasIncludingRelocating()

nextOrNull

ShardRouting nextOrNull()
Returns the next shard, or null if none available.


firstOrNull

ShardRouting firstOrNull()
Returns the first shard, or null, without incrementing the iterator.

See Also:
ShardRouting.assignedToNode()

remaining

int remaining()

hashCode

int hashCode()
Overrides:
hashCode in class Object

equals

boolean equals(Object other)
Overrides:
equals in class Object

asUnordered

Iterable<ShardRouting> asUnordered()


Copyright © 2009-2012. All Rights Reserved.