org.cloudgraph.hbase.client.HBaseRegionLocation Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of cloudgraph-hbase Show documentation
Show all versions of cloudgraph-hbase Show documentation
CloudGraph(tm) is a suite of Service Data Object (SDO) 2.1 services designed for relational and big-table style "cloud" databases, such as HBase and others.
The newest version!
package org.cloudgraph.hbase.client;
import org.apache.hadoop.hbase.HRegionInfo;
import org.cloudgraph.core.client.RegionLocation;
public class HBaseRegionLocation implements RegionLocation {
private org.apache.hadoop.hbase.HRegionLocation regionLocation;
private HRegionInfo regionInfo;
@SuppressWarnings("unused")
private HBaseRegionLocation() {
}
public HBaseRegionLocation(org.apache.hadoop.hbase.HRegionLocation regionLocation) {
super();
this.regionLocation = regionLocation;
this.regionInfo = this.regionLocation.getRegionInfo();
}
@Override
public String getHostname() {
return regionLocation.getHostname();
}
@Override
public int getPort() {
return regionLocation.getPort();
}
@Override
public long getSeqNum() {
return regionLocation.getSeqNum();
}
@Override
public String getHostnamePort() {
return regionLocation.getHostnamePort();
}
@Override
public long getRegionId() {
return regionInfo.getRegionId();
}
@Override
public String getRegionNameAsString() {
return regionInfo.getRegionNameAsString();
}
@Override
public byte[] getStartKey() {
return regionInfo.getStartKey();
}
@Override
public byte[] getEndKey() {
return regionInfo.getEndKey();
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy