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.HRegionInfo region,
org.apache.hadoop.hbase.ServerName sn,
org.apache.hadoop.hbase.HRegionInfo splita,
org.apache.hadoop.hbase.HRegionInfo 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.HRegionInfo region, org.apache.hadoop.hbase.ServerName sn, org.apache.hadoop.hbase.HRegionInfo splita, org.apache.hadoop.hbase.HRegionInfo 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–2019 The Apache Software Foundation. All rights reserved.