public class MetaMockingUtil extends Object
| Constructor and Description |
|---|
MetaMockingUtil() |
| Modifier and Type | Method and Description |
|---|---|
static Result |
getMetaTableRowResult(HRegionInfo region)
Returns a Result object constructed from the given region information simulating
a catalog table result.
|
static Result |
getMetaTableRowResult(HRegionInfo region,
ServerName sn)
Returns a Result object constructed from the given region information simulating
a catalog table result.
|
static Result |
getMetaTableRowResult(HRegionInfo region,
ServerName sn,
HRegionInfo splita,
HRegionInfo splitb)
Returns a Result object constructed from the given region information simulating
a catalog table result.
|
public MetaMockingUtil()
public static Result getMetaTableRowResult(HRegionInfo region) throws IOException
region - the HRegionInfo object or nullhbase:meta table.IOExceptionpublic static Result getMetaTableRowResult(HRegionInfo region, ServerName sn) throws IOException
region - the HRegionInfo object or nullsn - to use making startcode and server hostname:port in meta or nullhbase:meta table.IOExceptionpublic static Result getMetaTableRowResult(HRegionInfo region, ServerName sn, HRegionInfo splita, 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.IOExceptionCopyright © 2007–2019 Cloudera. All rights reserved.