@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 masterNotice 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
IOException
public Result get(Get get) throws IOException
IOException
public ResultScanner getScanner(Scan scan) throws IOException
IOException
public RegionScanner getRegionScanner(Scan scan) throws IOException
IOException
public HRegion.FlushResult flush(boolean force) throws IOException
IOException
public void requestRollAll()
public void waitUntilWalRollFinished() throws InterruptedException
InterruptedException
public void close(boolean abort)
public static MasterRegion create(MasterRegionParams params) throws IOException
IOException
Copyright © 2007–2020 The Apache Software Foundation. All rights reserved.