@InterfaceAudience.Public @InterfaceStability.Evolving public class HRegionLocation extends Object implements Comparable<HRegionLocation>
| Modifier and Type | Field and Description |
|---|---|
private HRegionInfo |
regionInfo |
private long |
seqNum |
private ServerName |
serverName |
| Constructor and Description |
|---|
HRegionLocation(HRegionInfo regionInfo,
ServerName serverName) |
HRegionLocation(HRegionInfo regionInfo,
ServerName serverName,
long seqNum) |
| Modifier and Type | Method and Description |
|---|---|
int |
compareTo(HRegionLocation o) |
boolean |
equals(Object o) |
String |
getHostname() |
String |
getHostnamePort() |
int |
getPort() |
HRegionInfo |
getRegionInfo() |
long |
getSeqNum() |
ServerName |
getServerName() |
int |
hashCode() |
String |
toString() |
private final HRegionInfo regionInfo
private final ServerName serverName
private final long seqNum
public HRegionLocation(HRegionInfo regionInfo, ServerName serverName)
public HRegionLocation(HRegionInfo regionInfo, ServerName serverName, long seqNum)
public String toString()
toString in class ObjectObject.toString()public boolean equals(Object o)
equals in class ObjectObject.equals(java.lang.Object)public int hashCode()
hashCode in class ObjectObject.hashCode()public HRegionInfo getRegionInfo()
public String getHostname()
public int getPort()
public long getSeqNum()
public String getHostnamePort()
Addressing.createHostAndPortStr(String, int)public ServerName getServerName()
public int compareTo(HRegionLocation o)
compareTo in interface Comparable<HRegionLocation>Copyright © 2007–2019 The Apache Software Foundation. All rights reserved.