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>
-
-
Field Summary
Fields Modifier and Type Field Description String
collection
int
index
String
node
String
shard
Replica.Type
type
-
Constructor Summary
Constructors Constructor Description ReplicaPosition(String collection, String shard, int replicaIdx, Replica.Type type)
ReplicaPosition(String collection, 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
-
collection
public final String collection
-
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 collection, String shard, int replicaIdx, Replica.Type type)
-
ReplicaPosition
public ReplicaPosition(String collection, 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)
-
-