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.replication.regionserver | |
org.apache.hadoop.hbase.wal |
Modifier and Type | Method and Description |
---|---|
default void |
RegionObserver.postWALRestore(ObserverContext<? extends RegionCoprocessorEnvironment> ctx,
HRegionInfo info,
WALKey logKey,
WALEdit logEdit)
Called after a
WALEdit
replayed for this region. |
default void |
WALObserver.postWALWrite(ObserverContext<? extends WALCoprocessorEnvironment> ctx,
HRegionInfo info,
WALKey logKey,
WALEdit logEdit)
Called after a
WALEdit
is writen to WAL. |
default void |
RegionObserver.preWALRestore(ObserverContext<? extends RegionCoprocessorEnvironment> ctx,
HRegionInfo info,
WALKey logKey,
WALEdit logEdit)
Called before a
WALEdit
replayed for this region. |
default boolean |
WALObserver.preWALWrite(ObserverContext<? extends WALCoprocessorEnvironment> ctx,
HRegionInfo info,
WALKey logKey,
WALEdit logEdit)
Called before a
WALEdit
is writen to WAL. |
Modifier and Type | Method and Description |
---|---|
void |
RegionCoprocessorHost.postWALRestore(HRegionInfo info,
WALKey logKey,
WALEdit logEdit) |
boolean |
RegionCoprocessorHost.preWALRestore(HRegionInfo info,
WALKey logKey,
WALEdit logEdit) |
Modifier and Type | Method and Description |
---|---|
static WALKey |
WALUtil.doFullAppendTransaction(WAL wal,
NavigableMap<byte[],Integer> replicationScope,
HRegionInfo hri,
WALEdit edit,
MultiVersionConcurrencyControl mvcc,
boolean sync)
A 'full' WAL transaction involves starting an mvcc transaction followed by an append,
an optional sync, and then a call to complete the mvcc transaction.
|
static WALKey |
WALUtil.writeBulkLoadMarkerAndSync(WAL wal,
NavigableMap<byte[],Integer> replicationScope,
HRegionInfo hri,
org.apache.hadoop.hbase.shaded.protobuf.generated.WALProtos.BulkLoadDescriptor desc,
MultiVersionConcurrencyControl mvcc)
Write a log marker that a bulk load has succeeded and is about to be committed.
|
static WALKey |
WALUtil.writeCompactionMarker(WAL wal,
NavigableMap<byte[],Integer> replicationScope,
HRegionInfo hri,
org.apache.hadoop.hbase.shaded.protobuf.generated.WALProtos.CompactionDescriptor c,
MultiVersionConcurrencyControl mvcc)
Write the marker that a compaction has succeeded and is about to be committed.
|
static WALKey |
WALUtil.writeFlushMarker(WAL wal,
NavigableMap<byte[],Integer> replicationScope,
HRegionInfo hri,
org.apache.hadoop.hbase.shaded.protobuf.generated.WALProtos.FlushDescriptor f,
boolean sync,
MultiVersionConcurrencyControl mvcc)
Write a flush marker indicating a start / abort or a complete of a region flush
|
static WALKey |
WALUtil.writeRegionEventMarker(WAL wal,
NavigableMap<byte[],Integer> replicationScope,
HRegionInfo hri,
org.apache.hadoop.hbase.shaded.protobuf.generated.WALProtos.RegionEventDescriptor r,
MultiVersionConcurrencyControl mvcc)
Write a region open marker indicating that the region is opened.
|
Modifier and Type | Method and Description |
---|---|
long |
FSHLog.append(HRegionInfo hri,
WALKey key,
WALEdit edits,
boolean inMemstore) |
long |
AsyncFSWAL.append(HRegionInfo hri,
WALKey key,
WALEdit edits,
boolean inMemstore) |
abstract long |
AbstractFSWAL.append(HRegionInfo info,
WALKey key,
WALEdit edits,
boolean inMemstore)
NOTE: This append, at a time that is usually after this call returns, starts an mvcc
transaction by calling 'begin' wherein which we assign this update a sequenceid.
|
void |
WALActionsListener.postAppend(long entryLen,
long elapsedTimeMillis,
WALKey logKey,
WALEdit logEdit)
For notification post append to the writer.
|
void |
WALActionsListener.Base.postAppend(long entryLen,
long elapsedTimeMillis,
WALKey logKey,
WALEdit logEdit) |
void |
MetricsWAL.postAppend(long size,
long time,
WALKey logkey,
WALEdit logEdit) |
void |
WALCoprocessorHost.postWALWrite(HRegionInfo info,
WALKey logKey,
WALEdit logEdit) |
boolean |
WALCoprocessorHost.preWALWrite(HRegionInfo info,
WALKey logKey,
WALEdit logEdit) |
protected long |
AbstractFSWAL.stampSequenceIdAndPublishToRingBuffer(HRegionInfo hri,
WALKey key,
WALEdit edits,
boolean inMemstore,
com.lmax.disruptor.RingBuffer<org.apache.hadoop.hbase.regionserver.wal.RingBufferTruck> ringBuffer) |
void |
WALActionsListener.visitLogEntryBeforeWrite(HRegionInfo info,
WALKey logKey,
WALEdit logEdit)
Called before each write.
|
void |
WALActionsListener.Base.visitLogEntryBeforeWrite(HRegionInfo info,
WALKey logKey,
WALEdit logEdit) |
void |
WALActionsListener.visitLogEntryBeforeWrite(WALKey logKey,
WALEdit logEdit) |
void |
WALActionsListener.Base.visitLogEntryBeforeWrite(WALKey logKey,
WALEdit logEdit) |
Modifier and Type | Method and Description |
---|---|
static void |
Replication.scopeWALEdits(WALKey logKey,
WALEdit logEdit,
org.apache.hadoop.conf.Configuration conf,
ReplicationSourceManager replicationManager)
Utility method used to set the correct scopes on each log key.
|
void |
Replication.visitLogEntryBeforeWrite(WALKey logKey,
WALEdit logEdit) |
Modifier and Type | Method and Description |
---|---|
WALKey |
WAL.Entry.getKey()
Gets the key
|
Modifier and Type | Method and Description |
---|---|
long |
WAL.append(HRegionInfo info,
WALKey key,
WALEdit edits,
boolean inMemstore)
Append a set of edits to the WAL.
|
int |
WALKey.compareTo(WALKey o) |
Modifier and Type | Method and Description |
---|---|
static List<WALSplitter.MutationReplay> |
WALSplitter.getMutationsFromWALEntry(org.apache.hadoop.hbase.shaded.protobuf.generated.AdminProtos.WALEntry entry,
CellScanner cells,
Pair<WALKey,WALEdit> logEntry,
Durability durability)
This function is used to construct mutations from a WALEntry.
|
Constructor and Description |
---|
Entry(WALKey key,
WALEdit edit)
Constructor for both params
|
Copyright © 2007–2017 The Apache Software Foundation. All rights reserved.