public class MetaMockingUtil
extends java.lang.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 java.io.IOException
region - the HRegionInfo object or nullhbase:meta table.java.io.IOExceptionpublic static Result getMetaTableRowResult(HRegionInfo region, ServerName sn) throws java.io.IOException
region - the HRegionInfo object or nullsn - to use making startcode and server hostname:port in meta or nullhbase:meta table.java.io.IOExceptionpublic static Result getMetaTableRowResult(HRegionInfo region, ServerName sn, HRegionInfo splita, HRegionInfo splitb) throws java.io.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.java.io.IOExceptionpublic static Result getMetaTableRowResultAsSplitRegion(HRegionInfo hri, ServerName sn) throws java.io.IOException
sn - ServerName to use making startcode and server in metahri - Region to serialize into HRegionInfohbase:meta table.java.io.IOException