public class TestRegionLocations extends Object
Modifier and Type | Field and Description |
---|---|
static HBaseClassTestRule |
CLASS_RULE |
(package private) org.apache.hadoop.hbase.HRegionInfo |
info0 |
(package private) org.apache.hadoop.hbase.HRegionInfo |
info1 |
(package private) org.apache.hadoop.hbase.HRegionInfo |
info2 |
(package private) org.apache.hadoop.hbase.HRegionInfo |
info9 |
(package private) long |
regionId1 |
(package private) long |
regionId2 |
(package private) org.apache.hadoop.hbase.ServerName |
sn0 |
(package private) org.apache.hadoop.hbase.ServerName |
sn1 |
(package private) org.apache.hadoop.hbase.ServerName |
sn2 |
(package private) org.apache.hadoop.hbase.ServerName |
sn3 |
Constructor and Description |
---|
TestRegionLocations() |
Modifier and Type | Method and Description |
---|---|
private org.apache.hadoop.hbase.HRegionInfo |
hri(int replicaId) |
private org.apache.hadoop.hbase.HRegionInfo |
hri(long regionId,
int replicaId) |
private org.apache.hadoop.hbase.HRegionLocation |
hrl(org.apache.hadoop.hbase.HRegionInfo hri,
org.apache.hadoop.hbase.ServerName sn) |
private org.apache.hadoop.hbase.HRegionLocation |
hrl(org.apache.hadoop.hbase.HRegionInfo hri,
org.apache.hadoop.hbase.ServerName sn,
long seqNum) |
private org.apache.hadoop.hbase.RegionLocations |
hrll(org.apache.hadoop.hbase.HRegionLocation... locations) |
void |
testConstructWithNullElements() |
void |
testMergeLocations() |
void |
testMergeLocationsWithDifferentRegionId() |
void |
testRemove() |
void |
testRemoveByServer() |
void |
testSizeMethods() |
void |
testUpdateLocation() |
void |
testUpdateLocationWithDifferentRegionId() |
public static final HBaseClassTestRule CLASS_RULE
org.apache.hadoop.hbase.ServerName sn0
org.apache.hadoop.hbase.ServerName sn1
org.apache.hadoop.hbase.ServerName sn2
org.apache.hadoop.hbase.ServerName sn3
org.apache.hadoop.hbase.HRegionInfo info0
org.apache.hadoop.hbase.HRegionInfo info1
org.apache.hadoop.hbase.HRegionInfo info2
org.apache.hadoop.hbase.HRegionInfo info9
long regionId1
long regionId2
public TestRegionLocations()
public void testSizeMethods()
private org.apache.hadoop.hbase.HRegionInfo hri(int replicaId)
private org.apache.hadoop.hbase.HRegionInfo hri(long regionId, int replicaId)
private org.apache.hadoop.hbase.HRegionLocation hrl(org.apache.hadoop.hbase.HRegionInfo hri, org.apache.hadoop.hbase.ServerName sn)
private org.apache.hadoop.hbase.HRegionLocation hrl(org.apache.hadoop.hbase.HRegionInfo hri, org.apache.hadoop.hbase.ServerName sn, long seqNum)
private org.apache.hadoop.hbase.RegionLocations hrll(org.apache.hadoop.hbase.HRegionLocation... locations)
public void testRemoveByServer()
public void testRemove()
public void testUpdateLocation()
public void testMergeLocations()
public void testMergeLocationsWithDifferentRegionId()
public void testUpdateLocationWithDifferentRegionId()
public void testConstructWithNullElements()
Copyright © 2007–2019 The Apache Software Foundation. All rights reserved.