public class SampleRegionWALCoprocessor extends Object implements WALCoprocessor, RegionCoprocessor, WALObserver, RegionObserver
Coprocessor.StateRegionObserver.MutationTypePRIORITY_HIGHEST, PRIORITY_LOWEST, PRIORITY_SYSTEM, PRIORITY_USER, VERSION| Constructor and Description |
|---|
SampleRegionWALCoprocessor() |
| Modifier and Type | Method and Description |
|---|---|
Optional<RegionObserver> |
getRegionObserver() |
Optional<WALObserver> |
getWALObserver() |
boolean |
isPostWALRestoreCalled() |
boolean |
isPostWALRollCalled() |
boolean |
isPostWALWriteCalled() |
boolean |
isPreWALRestoreCalled() |
boolean |
isPreWALRollCalled() |
boolean |
isPreWALWriteCalled() |
void |
postWALRestore(ObserverContext<? extends RegionCoprocessorEnvironment> env,
RegionInfo info,
WALKey logKey,
WALEdit logEdit)
Triggered after
HRegion when WAL is
Restoreed. |
void |
postWALRoll(ObserverContext<? extends WALCoprocessorEnvironment> ctx,
org.apache.hadoop.fs.Path oldPath,
org.apache.hadoop.fs.Path newPath) |
void |
postWALWrite(ObserverContext<? extends WALCoprocessorEnvironment> env,
RegionInfo info,
WALKey logKey,
WALEdit logEdit) |
void |
preWALRestore(ObserverContext<? extends RegionCoprocessorEnvironment> env,
RegionInfo info,
WALKey logKey,
WALEdit logEdit)
Triggered before
HRegion when WAL is
Restoreed. |
void |
preWALRoll(ObserverContext<? extends WALCoprocessorEnvironment> ctx,
org.apache.hadoop.fs.Path oldPath,
org.apache.hadoop.fs.Path newPath) |
void |
preWALWrite(ObserverContext<? extends WALCoprocessorEnvironment> env,
RegionInfo info,
WALKey logKey,
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, waitgetBulkLoadObserver, getEndpointObservergetServices, start, stoppostAppend, postBatchMutate, postBatchMutateIndispensably, postBulkLoadHFile, postCheckAndDelete, postCheckAndPut, postClose, postCloseRegionOperation, postCommitStoreFile, postCompact, postCompactSelection, postDelete, postExists, postFlush, postFlush, postGetOp, postIncrement, postInstantiateDeleteTracker, postMemStoreCompaction, postMutationBeforeWAL, postOpen, postPut, postReplayWALs, postScannerClose, postScannerFilterRow, postScannerNext, postScannerOpen, postStartRegionOperation, postStoreFileReaderOpen, preAppend, preAppendAfterRowLock, preBatchMutate, preBulkLoadHFile, preCheckAndDelete, preCheckAndDeleteAfterRowLock, preCheckAndPut, 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, preStoreScannerOpenpublic SampleRegionWALCoprocessor()
public void setTestValues(byte[] tableName, byte[] row, byte[] igf, byte[] igq, byte[] chf, byte[] chq, byte[] addf, byte[] addq)
public Optional<WALObserver> getWALObserver()
getWALObserver in interface WALCoprocessorpublic Optional<RegionObserver> getRegionObserver()
getRegionObserver in interface RegionCoprocessorpublic void postWALWrite(ObserverContext<? extends WALCoprocessorEnvironment> env, RegionInfo info, WALKey logKey, WALEdit logEdit) throws IOException
postWALWrite in interface WALObserverIOExceptionpublic void preWALWrite(ObserverContext<? extends WALCoprocessorEnvironment> env, RegionInfo info, WALKey logKey, WALEdit logEdit) throws IOException
preWALWrite in interface WALObserverIOExceptionpublic void preWALRestore(ObserverContext<? extends RegionCoprocessorEnvironment> env, RegionInfo info, WALKey logKey, WALEdit logEdit) throws IOException
HRegion when WAL is
Restoreed.preWALRestore in interface RegionObserverIOExceptionpublic void preWALRoll(ObserverContext<? extends WALCoprocessorEnvironment> ctx, org.apache.hadoop.fs.Path oldPath, org.apache.hadoop.fs.Path newPath) throws IOException
preWALRoll in interface WALObserverIOExceptionpublic void postWALRoll(ObserverContext<? extends WALCoprocessorEnvironment> ctx, org.apache.hadoop.fs.Path oldPath, org.apache.hadoop.fs.Path newPath) throws IOException
postWALRoll in interface WALObserverIOExceptionpublic void postWALRestore(ObserverContext<? extends RegionCoprocessorEnvironment> env, RegionInfo info, WALKey logKey, WALEdit logEdit) throws IOException
HRegion when WAL is
Restoreed.postWALRestore in interface RegionObserverIOExceptionpublic boolean isPreWALWriteCalled()
public boolean isPostWALWriteCalled()
public boolean isPreWALRestoreCalled()
public boolean isPostWALRestoreCalled()
public boolean isPreWALRollCalled()
public boolean isPostWALRollCalled()
Copyright © 2007–2019 Cloudera. All rights reserved.