@InterfaceAudience.Private public final class MasterRegion extends Object
hbase
|
--<region dir>
|
--data
| |
| --/<ns>/<table>/<encoded-region-name> <---- The region data
| |
| --replay <---- The edits to replay
|
--WALs
|
--<master-server-name> <---- The WAL dir for active master
|
--<master-server-name>-dead <---- The WAL dir for dead master
Notice that, you can use different root file system and WAL file system. Then the above directory
will be on two file systems, the root file system will have the data directory while the WAL
filesystem will have the WALs directory. The archived HFile will be moved to the global HFile
archived directory with the MasterRegionParams.archivedWalSuffix() suffix. The archived
WAL will be moved to the global WAL archived directory with the
MasterRegionParams.archivedHFileSuffix() suffix.| Modifier and Type | Method and Description |
|---|---|
void |
close(boolean abort) |
static MasterRegion |
create(MasterRegionParams params) |
HRegion.FlushResult |
flush(boolean force) |
Result |
get(Get get)
The design for master region is to only load all the data to memory at once when starting, so
typically you should not use the get method to get a single row of data at runtime.
|
RegionScanner |
getRegionScanner(Scan scan) |
ResultScanner |
getScanner(Scan scan) |
void |
requestRollAll() |
void |
update(UpdateMasterRegion action) |
void |
waitUntilWalRollFinished() |
public void update(UpdateMasterRegion action) throws IOException
IOExceptionpublic Result get(Get get) throws IOException
IOExceptionpublic ResultScanner getScanner(Scan scan) throws IOException
IOExceptionpublic RegionScanner getRegionScanner(Scan scan) throws IOException
IOExceptionpublic HRegion.FlushResult flush(boolean force) throws IOException
IOExceptionpublic void requestRollAll()
public void waitUntilWalRollFinished()
throws InterruptedException
InterruptedExceptionpublic void close(boolean abort)
public static MasterRegion create(MasterRegionParams params) throws IOException
IOExceptionCopyright © 2007–2020 The Apache Software Foundation. All rights reserved.