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.
|
static Result |
getMetaTableRowResultAsSplitRegion(HRegionInfo hri,
ServerName sn) |
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.IOExceptionpublic static Result getMetaTableRowResultAsSplitRegion(HRegionInfo hri, ServerName sn) throws IOException
sn - ServerName to use making startcode and server in metahri - Region to serialize into HRegionInfohbase:meta table.IOException