Package org.apache.solr.cluster
Interface Shard
public interface Shard
Shard in a
SolrCollection, i.e. a subset of the data indexed in that collection.-
Nested Class Summary
Nested Classes -
Method Summary
-
Method Details
-
getShardName
String getShardName() -
getCollection
SolrCollection getCollection()- Returns:
- the collection this shard is part of
-
getReplica
Returns theReplicaof the given name for that shard, if such a replica exists.- Returns:
nullif the replica does not (or does not yet) exist for the shard.
-
iterator
-
replicas
Allow foreach iteration on replicas such as:for (Replica r : shard.replicas()) {...}. -
getLeader
Replica getLeader() -
getState
Shard.ShardState getState()
-