@InterfaceAudience.Public @InterfaceStability.Evolving public class HRegionLocation extends Object implements Comparable<HRegionLocation>
| 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() |
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 © 2014 The Apache Software Foundation. All rights reserved.