@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() |
int |
getPort() |
RegionInfo |
getRegion() |
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 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.