org.apache.hadoop.hbase
Class HRegionLocation

java.lang.Object
  extended by org.apache.hadoop.hbase.HRegionLocation
All Implemented Interfaces:
Comparable

public class HRegionLocation
extends Object
implements Comparable

Contains the HRegionInfo for the region and the HServerAddress for the HRegionServer serving the region


Constructor Summary
HRegionLocation(HRegionInfo regionInfo, HServerAddress serverAddress)
          Constructor
 
Method Summary
 int compareTo(Object o)
          
 boolean equals(Object o)
          
 HRegionInfo getRegionInfo()
           
 HServerAddress getServerAddress()
           
 int hashCode()
          
 String toString()
          
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

HRegionLocation

public HRegionLocation(HRegionInfo regionInfo,
                       HServerAddress serverAddress)
Constructor

Parameters:
regionInfo - the HRegionInfo for the region
serverAddress - the HServerAddress for the region server
Method Detail

toString

public String toString()

Overrides:
toString in class Object

equals

public boolean equals(Object o)

Overrides:
equals in class Object

hashCode

public int hashCode()

Overrides:
hashCode in class Object

getRegionInfo

public HRegionInfo getRegionInfo()
Returns:
HRegionInfo

getServerAddress

public HServerAddress getServerAddress()
Returns:
HServerAddress

compareTo

public int compareTo(Object o)

Specified by:
compareTo in interface Comparable


Copyright © 2008 The Apache Software Foundation