public class MetaMockingUtil extends Object
Constructor and Description |
---|
MetaMockingUtil() |
Modifier and Type | Method and Description |
---|---|
static org.apache.hadoop.hbase.client.Result |
getMetaTableRowResult(org.apache.hadoop.hbase.HRegionInfo region)
Returns a Result object constructed from the given region information simulating
a catalog table result.
|
static org.apache.hadoop.hbase.client.Result |
getMetaTableRowResult(org.apache.hadoop.hbase.HRegionInfo region,
org.apache.hadoop.hbase.ServerName sn)
Returns a Result object constructed from the given region information simulating
a catalog table result.
|
static org.apache.hadoop.hbase.client.Result |
getMetaTableRowResult(org.apache.hadoop.hbase.client.RegionInfo region,
org.apache.hadoop.hbase.ServerName sn,
org.apache.hadoop.hbase.client.RegionInfo splita,
org.apache.hadoop.hbase.client.RegionInfo splitb)
Returns a Result object constructed from the given region information simulating
a catalog table result.
|
public MetaMockingUtil()
public static org.apache.hadoop.hbase.client.Result getMetaTableRowResult(org.apache.hadoop.hbase.HRegionInfo region) throws IOException
region
- the HRegionInfo object or nullhbase:meta
table.IOException
public static org.apache.hadoop.hbase.client.Result getMetaTableRowResult(org.apache.hadoop.hbase.HRegionInfo region, org.apache.hadoop.hbase.ServerName sn) throws IOException
region
- the HRegionInfo object or nullsn
- to use making startcode and server hostname:port in meta or nullhbase:meta
table.IOException
public static org.apache.hadoop.hbase.client.Result getMetaTableRowResult(org.apache.hadoop.hbase.client.RegionInfo region, org.apache.hadoop.hbase.ServerName sn, org.apache.hadoop.hbase.client.RegionInfo splita, org.apache.hadoop.hbase.client.RegionInfo splitb) throws IOException
region
- the HRegionInfo object or nullsn
- to use making startcode and server hostname:port in meta or nullsplita
- daughter region or nullsplitb
- daughter region or nullhbase:meta
table.IOException
Copyright © 2007–2021 The Apache Software Foundation. All rights reserved.