@InterfaceAudience.Public public class HRegionLocation extends Object implements Comparable<HRegionLocation>
| Constructor and Description |
|---|
HRegionLocation(RegionInfo regionInfo,
ServerName serverName) |
HRegionLocation(RegionInfo regionInfo,
ServerName serverName,
long seqNum) |
| Modifier and Type | Method and Description |
|---|---|
int |
compareTo(HRegionLocation o) |
boolean |
equals(Object o) |
String |
getHostname() |
String |
getHostnamePort()
Returns String made of hostname and port formatted as per
Addressing.createHostAndPortStr(String, int) |
int |
getPort() |
RegionInfo |
getRegion()
n
|
HRegionInfo |
getRegionInfo()
Deprecated.
Since 2.0.0. Will remove in 3.0.0. Use
getRegion()} instead. |
long |
getSeqNum() |
ServerName |
getServerName() |
int |
hashCode() |
String |
toString() |
public HRegionLocation(RegionInfo regionInfo, ServerName serverName)
public HRegionLocation(RegionInfo 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()@Deprecated public HRegionInfo getRegionInfo()
getRegion()} instead.public RegionInfo getRegion()
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–2020 The Apache Software Foundation. All rights reserved.