Package org.apache.solr.common.cloud
Class ReplicaPosition
- java.lang.Object
-
- org.apache.solr.common.cloud.ReplicaPosition
-
- All Implemented Interfaces:
Comparable<ReplicaPosition>
public class ReplicaPosition extends Object implements Comparable<ReplicaPosition>
-
-
Constructor Summary
Constructors Constructor Description ReplicaPosition(String shard, int replicaIdx, Replica.Type type)
ReplicaPosition(String shard, int replicaIdx, Replica.Type type, String node)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
compareTo(ReplicaPosition that)
ReplicaPosition
setNode(String node)
String
toString()
-
-
-
Field Detail
-
shard
public final String shard
-
index
public final int index
-
type
public final Replica.Type type
-
node
public String node
-
-
Constructor Detail
-
ReplicaPosition
public ReplicaPosition(String shard, int replicaIdx, Replica.Type type)
-
ReplicaPosition
public ReplicaPosition(String shard, int replicaIdx, Replica.Type type, String node)
-
-
Method Detail
-
compareTo
public int compareTo(ReplicaPosition that)
- Specified by:
compareTo
in interfaceComparable<ReplicaPosition>
-
setNode
public ReplicaPosition setNode(String node)
-
-