public class ReplicaPosition extends Object implements Comparable<ReplicaPosition>
Modifier and Type | Field and Description |
---|---|
int |
index |
String |
node |
String |
shard |
Replica.Type |
type |
Constructor and Description |
---|
ReplicaPosition(String shard,
int replicaIdx,
Replica.Type type) |
ReplicaPosition(String shard,
int replicaIdx,
Replica.Type type,
String node) |
Modifier and Type | Method and Description |
---|---|
int |
compareTo(ReplicaPosition that) |
ReplicaPosition |
setNode(String node) |
String |
toString() |
public final String shard
public final int index
public final Replica.Type type
public String node
public ReplicaPosition(String shard, int replicaIdx, Replica.Type type)
public ReplicaPosition(String shard, int replicaIdx, Replica.Type type, String node)
public int compareTo(ReplicaPosition that)
compareTo
in interface Comparable<ReplicaPosition>
public ReplicaPosition setNode(String node)
Copyright © 2000-2018 Apache Software Foundation. All Rights Reserved.