@InterfaceAudience.Public public class HRegionLocation extends Object implements Comparable<HRegionLocation>
Modifier and Type | Field and Description |
---|---|
private RegionInfo |
regionInfo |
private long |
seqNum |
private ServerName |
serverName |
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() |
private final RegionInfo regionInfo
private final ServerName serverName
private final long seqNum
public HRegionLocation(RegionInfo regionInfo, ServerName serverName)
public HRegionLocation(RegionInfo regionInfo, ServerName serverName, long seqNum)
public String toString()
toString
in class Object
Object.toString()
public boolean equals(Object o)
equals
in class Object
Object.equals(java.lang.Object)
public int hashCode()
hashCode
in class Object
Object.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.