Package org.apache.solr.cluster
Interface Shard
-
public interface ShardShard in aSolrCollection, i.e. a subset of the data indexed in that collection.
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static classShard.ShardState
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description SolrCollectiongetCollection()ReplicagetLeader()ReplicagetReplica(String name)Returns theReplicaof the given name for that shard, if such a replica exists.StringgetShardName()Shard.ShardStategetState()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 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.
-
replicas
Iterable<Replica> replicas()
Allow foreach iteration on replicas such as:for (Replica r : shard.replicas()) {...}.
-
getLeader
Replica getLeader()
-
getState
Shard.ShardState getState()
-
-