Package org.apache.solr.cluster
Interface Shard
-
public interface Shard
Shard in aSolrCollection
, i.e. a subset of the data indexed in that collection.
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static class
Shard.ShardState
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description SolrCollection
getCollection()
Replica
getLeader()
Replica
getReplica(String name)
Returns theReplica
of the given name for that shard, if such a replica exists.String
getShardName()
Shard.ShardState
getState()
Iterator<Replica>
iterator()
Iterable<Replica>
replicas()
Allow foreach iteration on replicas such as:for (Replica r : shard.replicas()) {...}
.
-
-
-
Method Detail
-
getShardName
String getShardName()
-
getCollection
SolrCollection getCollection()
- Returns:
- the collection this shard is part of
-
getReplica
Replica getReplica(String name)
Returns theReplica
of the given name for that shard, if such a replica exists.- Returns:
null
if the replica does not (or does not yet) exist for the shard.
-
replicas
Iterable<Replica> replicas()
Allow foreach iteration on replicas such as:for (Replica r : shard.replicas()) {...}
.
-
getLeader
Replica getLeader()
-
getState
Shard.ShardState getState()
-
-