Package | Description |
---|---|
org.apache.hadoop.hbase.coprocessor |
Table of Contents
|
org.apache.hadoop.hbase.regionserver | |
org.apache.hadoop.hbase.regionserver.wal | |
org.apache.hadoop.hbase.util | |
org.apache.hadoop.hbase.wal |
Modifier and Type | Method and Description |
---|---|
WAL |
WALCoprocessorEnvironment.getWAL() |
Modifier and Type | Field and Description |
---|---|
private WAL |
HRegion.wal |
Modifier and Type | Field and Description |
---|---|
private ConcurrentHashMap<WAL,Boolean> |
LogRoller.walNeedsRoll |
Modifier and Type | Method and Description |
---|---|
WAL |
HRegion.getWAL() |
WAL |
RegionServerServices.getWAL(HRegionInfo regionInfo) |
WAL |
HRegionServer.getWAL(HRegionInfo regionInfo) |
(package private) WAL |
RSRpcServices.getWAL(Region region) |
Modifier and Type | Method and Description |
---|---|
void |
LogRoller.addWAL(WAL wal) |
private WALKey |
HRegion.appendEmptyEdit(WAL wal)
Append a faked WALEdit in order to get a long sequence number and wal syncer will just ignore
the WALEdit append later.
|
static HRegion |
HRegion.createHRegion(HRegionInfo info,
org.apache.hadoop.fs.Path rootDir,
org.apache.hadoop.conf.Configuration conf,
HTableDescriptor hTableDescriptor,
WAL wal) |
static HRegion |
HRegion.createHRegion(HRegionInfo info,
org.apache.hadoop.fs.Path rootDir,
org.apache.hadoop.conf.Configuration conf,
HTableDescriptor hTableDescriptor,
WAL wal,
boolean initialize)
Convenience method creating new HRegions.
|
static HRegion |
HRegion.createHRegion(HRegionInfo info,
org.apache.hadoop.fs.Path rootDir,
org.apache.hadoop.conf.Configuration conf,
HTableDescriptor hTableDescriptor,
WAL wal,
boolean initialize,
boolean ignoreWAL)
Convenience method creating new HRegions.
|
static HRegion |
HRegion.createHRegion(HRegionInfo info,
org.apache.hadoop.fs.Path rootDir,
org.apache.hadoop.fs.Path tableDir,
org.apache.hadoop.conf.Configuration conf,
HTableDescriptor hTableDescriptor,
WAL wal,
boolean initialize,
boolean ignoreWAL)
Convenience method creating new HRegions.
|
protected long |
HRegion.getNextSequenceId(WAL wal)
Method to safely get the next sequence number.
|
protected Region.FlushResult |
HRegion.internalFlushcache(WAL wal,
long myseqid,
Collection<Store> storesToFlush,
MonitoredTask status,
boolean writeFlushWalMarker)
Flush the memstore.
|
protected Region.FlushResult |
HRegion.internalFlushCacheAndCommit(WAL wal,
MonitoredTask status,
HRegion.PrepareFlushResult prepareResult,
Collection<Store> storesToFlush) |
protected HRegion.PrepareFlushResult |
HRegion.internalPrepareFlushCache(WAL wal,
long myseqid,
Collection<Store> storesToFlush,
MonitoredTask status,
boolean writeFlushWalMarker) |
(package private) static HRegion |
HRegion.newHRegion(org.apache.hadoop.fs.Path tableDir,
WAL wal,
org.apache.hadoop.fs.FileSystem fs,
org.apache.hadoop.conf.Configuration conf,
HRegionInfo regionInfo,
HTableDescriptor htd,
RegionServerServices rsServices)
A utility method to create new instances of HRegion based on the
HConstants.REGION_IMPL configuration property. |
static HRegion |
HRegion.openHRegion(org.apache.hadoop.conf.Configuration conf,
org.apache.hadoop.fs.FileSystem fs,
org.apache.hadoop.fs.Path rootDir,
HRegionInfo info,
HTableDescriptor htd,
WAL wal)
Open a Region.
|
static HRegion |
HRegion.openHRegion(org.apache.hadoop.conf.Configuration conf,
org.apache.hadoop.fs.FileSystem fs,
org.apache.hadoop.fs.Path rootDir,
HRegionInfo info,
HTableDescriptor htd,
WAL wal,
RegionServerServices rsServices,
CancelableProgressable reporter)
Open a Region.
|
static HRegion |
HRegion.openHRegion(org.apache.hadoop.conf.Configuration conf,
org.apache.hadoop.fs.FileSystem fs,
org.apache.hadoop.fs.Path rootDir,
org.apache.hadoop.fs.Path tableDir,
HRegionInfo info,
HTableDescriptor htd,
WAL wal,
RegionServerServices rsServices,
CancelableProgressable reporter)
Open a Region.
|
static HRegion |
HRegion.openHRegion(HRegionInfo info,
HTableDescriptor htd,
WAL wal,
org.apache.hadoop.conf.Configuration conf)
Open a Region.
|
static HRegion |
HRegion.openHRegion(HRegionInfo info,
HTableDescriptor htd,
WAL wal,
org.apache.hadoop.conf.Configuration conf,
RegionServerServices rsServices,
CancelableProgressable reporter)
Open a Region.
|
static HRegion |
HRegion.openHRegion(org.apache.hadoop.fs.Path rootDir,
HRegionInfo info,
HTableDescriptor htd,
WAL wal,
org.apache.hadoop.conf.Configuration conf)
Open a Region.
|
static HRegion |
HRegion.openHRegion(org.apache.hadoop.fs.Path rootDir,
HRegionInfo info,
HTableDescriptor htd,
WAL wal,
org.apache.hadoop.conf.Configuration conf,
RegionServerServices rsServices,
CancelableProgressable reporter)
Open a Region.
|
static void |
HRegion.warmupHRegion(HRegionInfo info,
HTableDescriptor htd,
WAL wal,
org.apache.hadoop.conf.Configuration conf,
RegionServerServices rsServices,
CancelableProgressable reporter) |
private boolean |
HRegion.writeFlushRequestMarkerToWAL(WAL wal,
boolean writeFlushWalMarker)
Writes a marker to WAL indicating a flush is requested but cannot be complete due to various
reasons.
|
private void |
HRegion.writeRegionCloseMarker(WAL wal) |
private void |
HRegion.writeRegionOpenMarker(WAL wal,
long openSeqId) |
Constructor and Description |
---|
HRegion(HRegionFileSystem fs,
WAL wal,
org.apache.hadoop.conf.Configuration confParam,
HTableDescriptor htd,
RegionServerServices rsServices)
HRegion constructor.
|
HRegion(org.apache.hadoop.fs.Path tableDir,
WAL wal,
org.apache.hadoop.fs.FileSystem fs,
org.apache.hadoop.conf.Configuration confParam,
HRegionInfo regionInfo,
HTableDescriptor htd,
RegionServerServices rsServices)
Deprecated.
Use other constructors.
|
Modifier and Type | Class and Description |
---|---|
class |
FSHLog
Implementation of
WAL to go against FileSystem ; i.e. |
Modifier and Type | Field and Description |
---|---|
private WAL |
WALCoprocessorHost.wal |
private WAL |
WALCoprocessorHost.WALEnvironment.wal |
Modifier and Type | Method and Description |
---|---|
WAL |
WALCoprocessorHost.WALEnvironment.getWAL() |
Modifier and Type | Method and Description |
---|---|
static long |
WALUtil.writeBulkLoadMarkerAndSync(WAL wal,
HTableDescriptor htd,
HRegionInfo hri,
org.apache.hadoop.hbase.protobuf.generated.WALProtos.BulkLoadDescriptor desc,
MultiVersionConcurrencyControl mvcc)
Write a log marker that a bulk load has succeeded and is about to be committed.
|
static long |
WALUtil.writeCompactionMarker(WAL wal,
HTableDescriptor htd,
HRegionInfo hri,
org.apache.hadoop.hbase.protobuf.generated.WALProtos.CompactionDescriptor c,
MultiVersionConcurrencyControl mvcc)
Write the marker that a compaction has succeeded and is about to be committed.
|
static long |
WALUtil.writeFlushMarker(WAL wal,
HTableDescriptor htd,
HRegionInfo hri,
org.apache.hadoop.hbase.protobuf.generated.WALProtos.FlushDescriptor f,
boolean sync,
MultiVersionConcurrencyControl mvcc)
Write a flush marker indicating a start / abort or a complete of a region flush
|
private static long |
WALUtil.writeMarker(WAL wal,
HTableDescriptor htd,
HRegionInfo hri,
WALEdit edit,
MultiVersionConcurrencyControl mvcc,
boolean sync) |
static long |
WALUtil.writeRegionEventMarker(WAL wal,
HTableDescriptor htd,
HRegionInfo hri,
org.apache.hadoop.hbase.protobuf.generated.WALProtos.RegionEventDescriptor r,
MultiVersionConcurrencyControl mvcc)
Write a region open marker indicating that the region is opened
|
Constructor and Description |
---|
WALCoprocessorHost.WALEnvironment(Class<?> implClass,
Coprocessor impl,
int priority,
int seq,
org.apache.hadoop.conf.Configuration conf,
WAL wal)
Constructor
|
WALCoprocessorHost(WAL log,
org.apache.hadoop.conf.Configuration conf)
Constructor
|
Modifier and Type | Method and Description |
---|---|
WAL |
MetaUtils.getLog(HRegionInfo info) |
Modifier and Type | Class and Description |
---|---|
private static class |
DisabledWALProvider.DisabledWAL |
Modifier and Type | Field and Description |
---|---|
(package private) WAL |
DisabledWALProvider.disabled |
Modifier and Type | Method and Description |
---|---|
WAL |
WALFactory.getMetaWAL(byte[] identifier) |
WAL |
DefaultWALProvider.getWAL(byte[] identifier) |
WAL |
DisabledWALProvider.getWAL(byte[] identifier) |
WAL |
WALProvider.getWAL(byte[] identifier) |
WAL |
RegionGroupingProvider.getWAL(byte[] identifier) |
WAL |
WALFactory.getWAL(byte[] identifier) |
Modifier and Type | Method and Description |
---|---|
static long |
DefaultWALProvider.extractFileNumFromWAL(WAL wal)
It returns the file create timestamp from the file name.
|
static org.apache.hadoop.fs.Path |
DefaultWALProvider.getCurrentFileName(WAL wal)
return the current filename from the current wal.
|
static int |
DefaultWALProvider.getNumRolledLogFiles(WAL wal)
returns the number of rolled WAL files.
|
(package private) static void |
DefaultWALProvider.requestLogRoll(WAL wal)
request a log roll, but don't actually do it.
|
Copyright © 2007–2019 The Apache Software Foundation. All rights reserved.