public class SampleRegionWALCoprocessor extends Object implements org.apache.hadoop.hbase.coprocessor.WALCoprocessor, org.apache.hadoop.hbase.coprocessor.RegionCoprocessor, org.apache.hadoop.hbase.coprocessor.WALObserver, org.apache.hadoop.hbase.coprocessor.RegionObserver
Modifier and Type | Field and Description |
---|---|
private byte[] |
addedFamily |
private byte[] |
addedQualifier |
private byte[] |
changedFamily |
private byte[] |
changedQualifier |
private byte[] |
ignoredFamily |
private byte[] |
ignoredQualifier |
private static org.slf4j.Logger |
LOG |
private boolean |
postWALRestoreCalled |
private boolean |
postWALRollCalled |
private boolean |
postWALWriteCalled |
private boolean |
preWALRestoreCalled |
private boolean |
preWALRollCalled |
private boolean |
preWALWriteCalled |
private byte[] |
row |
private byte[] |
tableName |
Constructor and Description |
---|
SampleRegionWALCoprocessor() |
Modifier and Type | Method and Description |
---|---|
Optional<org.apache.hadoop.hbase.coprocessor.RegionObserver> |
getRegionObserver() |
Optional<org.apache.hadoop.hbase.coprocessor.WALObserver> |
getWALObserver() |
boolean |
isPostWALRestoreCalled() |
boolean |
isPostWALRollCalled() |
boolean |
isPostWALWriteCalled() |
boolean |
isPreWALRestoreCalled() |
boolean |
isPreWALRollCalled() |
boolean |
isPreWALWriteCalled() |
void |
postWALRestore(org.apache.hadoop.hbase.coprocessor.ObserverContext<? extends org.apache.hadoop.hbase.coprocessor.RegionCoprocessorEnvironment> env,
org.apache.hadoop.hbase.client.RegionInfo info,
org.apache.hadoop.hbase.wal.WALKey logKey,
org.apache.hadoop.hbase.wal.WALEdit logEdit)
Triggered after
HRegion when WAL is
Restoreed. |
void |
postWALRoll(org.apache.hadoop.hbase.coprocessor.ObserverContext<? extends org.apache.hadoop.hbase.coprocessor.WALCoprocessorEnvironment> ctx,
org.apache.hadoop.fs.Path oldPath,
org.apache.hadoop.fs.Path newPath) |
void |
postWALWrite(org.apache.hadoop.hbase.coprocessor.ObserverContext<? extends org.apache.hadoop.hbase.coprocessor.WALCoprocessorEnvironment> env,
org.apache.hadoop.hbase.client.RegionInfo info,
org.apache.hadoop.hbase.wal.WALKey logKey,
org.apache.hadoop.hbase.wal.WALEdit logEdit) |
void |
preWALRestore(org.apache.hadoop.hbase.coprocessor.ObserverContext<? extends org.apache.hadoop.hbase.coprocessor.RegionCoprocessorEnvironment> env,
org.apache.hadoop.hbase.client.RegionInfo info,
org.apache.hadoop.hbase.wal.WALKey logKey,
org.apache.hadoop.hbase.wal.WALEdit logEdit)
Triggered before
HRegion when WAL is
Restoreed. |
void |
preWALRoll(org.apache.hadoop.hbase.coprocessor.ObserverContext<? extends org.apache.hadoop.hbase.coprocessor.WALCoprocessorEnvironment> ctx,
org.apache.hadoop.fs.Path oldPath,
org.apache.hadoop.fs.Path newPath) |
void |
preWALWrite(org.apache.hadoop.hbase.coprocessor.ObserverContext<? extends org.apache.hadoop.hbase.coprocessor.WALCoprocessorEnvironment> env,
org.apache.hadoop.hbase.client.RegionInfo info,
org.apache.hadoop.hbase.wal.WALKey logKey,
org.apache.hadoop.hbase.wal.WALEdit logEdit) |
void |
setTestValues(byte[] tableName,
byte[] row,
byte[] igf,
byte[] igq,
byte[] chf,
byte[] chq,
byte[] addf,
byte[] addq)
Set values: with a table name, a column name which will be ignored, and
a column name which will be added to WAL.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getBulkLoadObserver, getEndpointObserver
postAppend, postAppendBeforeWAL, postBatchMutate, postBatchMutateIndispensably, postBulkLoadHFile, postCheckAndDelete, postCheckAndDelete, postCheckAndPut, postCheckAndPut, postClose, postCloseRegionOperation, postCommitStoreFile, postCompact, postCompactSelection, postDelete, postExists, postFlush, postFlush, postGetOp, postIncrement, postIncrementBeforeWAL, postInstantiateDeleteTracker, postMemStoreCompaction, postMutationBeforeWAL, postOpen, postPut, postReplayWALs, postScannerClose, postScannerFilterRow, postScannerNext, postScannerOpen, postStartRegionOperation, postStoreFileReaderOpen, preAppend, preAppendAfterRowLock, preBatchMutate, preBulkLoadHFile, preCheckAndDelete, preCheckAndDelete, preCheckAndDeleteAfterRowLock, preCheckAndDeleteAfterRowLock, preCheckAndPut, preCheckAndPut, preCheckAndPutAfterRowLock, preCheckAndPutAfterRowLock, preClose, preCommitStoreFile, preCompact, preCompactScannerOpen, preCompactSelection, preDelete, preExists, preFlush, preFlush, preFlushScannerOpen, preGetOp, preIncrement, preIncrementAfterRowLock, preMemStoreCompaction, preMemStoreCompactionCompact, preMemStoreCompactionCompactScannerOpen, preOpen, prePrepareTimeStampForDeleteVersion, prePut, preReplayWALs, preScannerClose, preScannerNext, preScannerOpen, preStoreFileReaderOpen, preStoreScannerOpen, preWALAppend
private static final org.slf4j.Logger LOG
private byte[] tableName
private byte[] row
private byte[] ignoredFamily
private byte[] ignoredQualifier
private byte[] addedFamily
private byte[] addedQualifier
private byte[] changedFamily
private byte[] changedQualifier
private boolean preWALWriteCalled
private boolean postWALWriteCalled
private boolean preWALRestoreCalled
private boolean postWALRestoreCalled
private boolean preWALRollCalled
private boolean postWALRollCalled
public SampleRegionWALCoprocessor()
public void setTestValues(byte[] tableName, byte[] row, byte[] igf, byte[] igq, byte[] chf, byte[] chq, byte[] addf, byte[] addq)
public Optional<org.apache.hadoop.hbase.coprocessor.WALObserver> getWALObserver()
getWALObserver
in interface org.apache.hadoop.hbase.coprocessor.WALCoprocessor
public Optional<org.apache.hadoop.hbase.coprocessor.RegionObserver> getRegionObserver()
getRegionObserver
in interface org.apache.hadoop.hbase.coprocessor.RegionCoprocessor
public void postWALWrite(org.apache.hadoop.hbase.coprocessor.ObserverContext<? extends org.apache.hadoop.hbase.coprocessor.WALCoprocessorEnvironment> env, org.apache.hadoop.hbase.client.RegionInfo info, org.apache.hadoop.hbase.wal.WALKey logKey, org.apache.hadoop.hbase.wal.WALEdit logEdit) throws IOException
postWALWrite
in interface org.apache.hadoop.hbase.coprocessor.WALObserver
IOException
public void preWALWrite(org.apache.hadoop.hbase.coprocessor.ObserverContext<? extends org.apache.hadoop.hbase.coprocessor.WALCoprocessorEnvironment> env, org.apache.hadoop.hbase.client.RegionInfo info, org.apache.hadoop.hbase.wal.WALKey logKey, org.apache.hadoop.hbase.wal.WALEdit logEdit) throws IOException
preWALWrite
in interface org.apache.hadoop.hbase.coprocessor.WALObserver
IOException
public void preWALRestore(org.apache.hadoop.hbase.coprocessor.ObserverContext<? extends org.apache.hadoop.hbase.coprocessor.RegionCoprocessorEnvironment> env, org.apache.hadoop.hbase.client.RegionInfo info, org.apache.hadoop.hbase.wal.WALKey logKey, org.apache.hadoop.hbase.wal.WALEdit logEdit) throws IOException
HRegion
when WAL is
Restoreed.preWALRestore
in interface org.apache.hadoop.hbase.coprocessor.RegionObserver
IOException
public void preWALRoll(org.apache.hadoop.hbase.coprocessor.ObserverContext<? extends org.apache.hadoop.hbase.coprocessor.WALCoprocessorEnvironment> ctx, org.apache.hadoop.fs.Path oldPath, org.apache.hadoop.fs.Path newPath) throws IOException
preWALRoll
in interface org.apache.hadoop.hbase.coprocessor.WALObserver
IOException
public void postWALRoll(org.apache.hadoop.hbase.coprocessor.ObserverContext<? extends org.apache.hadoop.hbase.coprocessor.WALCoprocessorEnvironment> ctx, org.apache.hadoop.fs.Path oldPath, org.apache.hadoop.fs.Path newPath) throws IOException
postWALRoll
in interface org.apache.hadoop.hbase.coprocessor.WALObserver
IOException
public void postWALRestore(org.apache.hadoop.hbase.coprocessor.ObserverContext<? extends org.apache.hadoop.hbase.coprocessor.RegionCoprocessorEnvironment> env, org.apache.hadoop.hbase.client.RegionInfo info, org.apache.hadoop.hbase.wal.WALKey logKey, org.apache.hadoop.hbase.wal.WALEdit logEdit) throws IOException
HRegion
when WAL is
Restoreed.postWALRestore
in interface org.apache.hadoop.hbase.coprocessor.RegionObserver
IOException
public boolean isPreWALWriteCalled()
public boolean isPostWALWriteCalled()
public boolean isPreWALRestoreCalled()
public boolean isPostWALRestoreCalled()
public boolean isPreWALRollCalled()
public boolean isPostWALRollCalled()
Copyright © 2007–2020 The Apache Software Foundation. All rights reserved.