org.apache.hadoop.hbase
Class HRegionLocation
java.lang.Object
org.apache.hadoop.hbase.HRegionLocation
- All Implemented Interfaces:
- java.lang.Comparable<HRegionLocation>
public class HRegionLocation
- extends java.lang.Object
- implements java.lang.Comparable<HRegionLocation>
Contains the HRegionInfo for the region and the HServerAddress for the
HRegionServer serving the region
| Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
HRegionLocation
public HRegionLocation(HRegionInfo regionInfo,
HServerAddress serverAddress)
- Constructor
- Parameters:
regionInfo - the HRegionInfo for the regionserverAddress - the HServerAddress for the region server
toString
public java.lang.String toString()
- Overrides:
toString in class java.lang.Object
- See Also:
Object.toString()
equals
public boolean equals(java.lang.Object o)
- Overrides:
equals in class java.lang.Object
- See Also:
Object.equals(java.lang.Object)
hashCode
public int hashCode()
- Overrides:
hashCode in class java.lang.Object
- See Also:
Object.hashCode()
getRegionInfo
public HRegionInfo getRegionInfo()
- Returns:
- HRegionInfo
getServerAddress
public HServerAddress getServerAddress()
- Returns:
- HServerAddress
compareTo
public int compareTo(HRegionLocation o)
- Specified by:
compareTo in interface java.lang.Comparable<HRegionLocation>
Copyright © 2011 The Apache Software Foundation. All Rights Reserved.