![JAR search and dependency download from the Maven repository](/logo.png)
org.cloudgraph.hbase.client.HBaseRegionLocator 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 java.io.IOException;
import java.util.ArrayList;
import java.util.List;
import org.apache.hadoop.hbase.HRegionLocation;
import org.cloudgraph.core.client.RegionLocation;
import org.cloudgraph.core.client.RegionLocator;
public class HBaseRegionLocator implements RegionLocator {
private org.apache.hadoop.hbase.client.RegionLocator regionLocator;
@SuppressWarnings("unused")
private HBaseRegionLocator() {
}
public HBaseRegionLocator(org.apache.hadoop.hbase.client.RegionLocator regionLocator) {
super();
this.regionLocator = regionLocator;
}
public org.apache.hadoop.hbase.client.RegionLocator getRegionLocator() {
return regionLocator;
}
@Override
public List getAllRegionLocations() throws IOException {
List locs = this.regionLocator.getAllRegionLocations();
List result = new ArrayList<>(locs.size());
for (HRegionLocation loc : locs) {
result.add(new HBaseRegionLocation(loc));
}
return result;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy