public class SimpleRegionObserver extends Object implements RegionCoprocessor, RegionObserver
Coprocessor.StateRegionObserver.MutationTypePRIORITY_HIGHEST, PRIORITY_LOWEST, PRIORITY_SYSTEM, PRIORITY_USER, VERSION| Constructor and Description |
|---|
SimpleRegionObserver() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetBulkLoadObserver, getEndpointObservergetServices, stoppostCommitStoreFile, postExists, postFlush, postInstantiateDeleteTracker, postMemStoreCompaction, postMutationBeforeWAL, preCommitStoreFile, preCompactScannerOpen, preExists, preFlush, preFlushScannerOpen, preMemStoreCompaction, preMemStoreCompactionCompact, preMemStoreCompactionCompactScannerOpen, preStoreScannerOpenpublic SimpleRegionObserver()
public void setThrowOnPostFlush(Boolean val)
public Optional<RegionObserver> getRegionObserver()
getRegionObserver in interface RegionCoprocessorpublic void start(CoprocessorEnvironment e) throws IOException
start in interface CoprocessorIOExceptionpublic void preOpen(ObserverContext<RegionCoprocessorEnvironment> c)
preOpen in interface RegionObserverpublic void postOpen(ObserverContext<RegionCoprocessorEnvironment> c)
postOpen in interface RegionObserverpublic boolean wasOpened()
public void preClose(ObserverContext<RegionCoprocessorEnvironment> c, boolean abortRequested)
preClose in interface RegionObserverpublic void postClose(ObserverContext<RegionCoprocessorEnvironment> c, boolean abortRequested)
postClose in interface RegionObserverpublic boolean wasClosed()
public InternalScanner preFlush(ObserverContext<RegionCoprocessorEnvironment> c, Store store, InternalScanner scanner, FlushLifeCycleTracker tracker) throws IOException
preFlush in interface RegionObserverIOExceptionpublic void postFlush(ObserverContext<RegionCoprocessorEnvironment> c, Store store, StoreFile resultFile, FlushLifeCycleTracker tracker) throws IOException
postFlush in interface RegionObserverIOExceptionpublic boolean wasFlushed()
public void preCompactSelection(ObserverContext<RegionCoprocessorEnvironment> c, Store store, List<? extends StoreFile> candidates, org.apache.hadoop.hbase.regionserver.compactions.CompactionLifeCycleTracker tracker) throws IOException
preCompactSelection in interface RegionObserverIOExceptionpublic void postCompactSelection(ObserverContext<RegionCoprocessorEnvironment> c, Store store, List<? extends StoreFile> selected, org.apache.hadoop.hbase.regionserver.compactions.CompactionLifeCycleTracker tracker, org.apache.hadoop.hbase.regionserver.compactions.CompactionRequest request)
postCompactSelection in interface RegionObserverpublic InternalScanner preCompact(ObserverContext<RegionCoprocessorEnvironment> c, Store store, InternalScanner scanner, ScanType scanType, org.apache.hadoop.hbase.regionserver.compactions.CompactionLifeCycleTracker tracker, org.apache.hadoop.hbase.regionserver.compactions.CompactionRequest request) throws IOException
preCompact in interface RegionObserverIOExceptionpublic void postCompact(ObserverContext<RegionCoprocessorEnvironment> c, Store store, StoreFile resultFile, org.apache.hadoop.hbase.regionserver.compactions.CompactionLifeCycleTracker tracker, org.apache.hadoop.hbase.regionserver.compactions.CompactionRequest request) throws IOException
postCompact in interface RegionObserverIOExceptionpublic boolean wasCompacted()
public void preScannerOpen(ObserverContext<RegionCoprocessorEnvironment> c, Scan scan) throws IOException
preScannerOpen in interface RegionObserverIOExceptionpublic RegionScanner postScannerOpen(ObserverContext<RegionCoprocessorEnvironment> c, Scan scan, RegionScanner s) throws IOException
postScannerOpen in interface RegionObserverIOExceptionpublic boolean preScannerNext(ObserverContext<RegionCoprocessorEnvironment> c, InternalScanner s, List<Result> results, int limit, boolean hasMore) throws IOException
preScannerNext in interface RegionObserverIOExceptionpublic boolean postScannerNext(ObserverContext<RegionCoprocessorEnvironment> c, InternalScanner s, List<Result> results, int limit, boolean hasMore) throws IOException
postScannerNext in interface RegionObserverIOExceptionpublic boolean postScannerFilterRow(ObserverContext<RegionCoprocessorEnvironment> e, InternalScanner s, Cell currentRow, boolean hasMore) throws IOException
postScannerFilterRow in interface RegionObserverIOExceptionpublic void preScannerClose(ObserverContext<RegionCoprocessorEnvironment> c, InternalScanner s) throws IOException
preScannerClose in interface RegionObserverIOExceptionpublic void postScannerClose(ObserverContext<RegionCoprocessorEnvironment> c, InternalScanner s) throws IOException
postScannerClose in interface RegionObserverIOExceptionpublic void preGetOp(ObserverContext<RegionCoprocessorEnvironment> c, Get get, List<Cell> results) throws IOException
preGetOp in interface RegionObserverIOExceptionpublic void postGetOp(ObserverContext<RegionCoprocessorEnvironment> c, Get get, List<Cell> results)
postGetOp in interface RegionObserverpublic void prePut(ObserverContext<RegionCoprocessorEnvironment> c, Put put, WALEdit edit, Durability durability) throws IOException
prePut in interface RegionObserverIOExceptionpublic void postPut(ObserverContext<RegionCoprocessorEnvironment> c, Put put, WALEdit edit, Durability durability) throws IOException
postPut in interface RegionObserverIOExceptionpublic void preDelete(ObserverContext<RegionCoprocessorEnvironment> c, Delete delete, WALEdit edit, Durability durability) throws IOException
preDelete in interface RegionObserverIOExceptionpublic void prePrepareTimeStampForDeleteVersion(ObserverContext<RegionCoprocessorEnvironment> e, Mutation delete, Cell cell, byte[] byteNow, Get get) throws IOException
prePrepareTimeStampForDeleteVersion in interface RegionObserverIOExceptionpublic void postDelete(ObserverContext<RegionCoprocessorEnvironment> c, Delete delete, WALEdit edit, Durability durability) throws IOException
postDelete in interface RegionObserverIOExceptionpublic void preBatchMutate(ObserverContext<RegionCoprocessorEnvironment> c, MiniBatchOperationInProgress<Mutation> miniBatchOp) throws IOException
preBatchMutate in interface RegionObserverIOExceptionpublic void postBatchMutate(ObserverContext<RegionCoprocessorEnvironment> c, MiniBatchOperationInProgress<Mutation> miniBatchOp) throws IOException
postBatchMutate in interface RegionObserverIOExceptionpublic void postStartRegionOperation(ObserverContext<RegionCoprocessorEnvironment> ctx, Region.Operation op) throws IOException
postStartRegionOperation in interface RegionObserverIOExceptionpublic void postCloseRegionOperation(ObserverContext<RegionCoprocessorEnvironment> ctx, Region.Operation op) throws IOException
postCloseRegionOperation in interface RegionObserverIOExceptionpublic void postBatchMutateIndispensably(ObserverContext<RegionCoprocessorEnvironment> ctx, MiniBatchOperationInProgress<Mutation> miniBatchOp, boolean success) throws IOException
postBatchMutateIndispensably in interface RegionObserverIOExceptionpublic Result preIncrement(ObserverContext<RegionCoprocessorEnvironment> c, Increment increment) throws IOException
preIncrement in interface RegionObserverIOExceptionpublic Result preIncrementAfterRowLock(ObserverContext<RegionCoprocessorEnvironment> e, Increment increment) throws IOException
preIncrementAfterRowLock in interface RegionObserverIOExceptionpublic Result postIncrement(ObserverContext<RegionCoprocessorEnvironment> c, Increment increment, Result result) throws IOException
postIncrement in interface RegionObserverIOExceptionpublic boolean preCheckAndPut(ObserverContext<RegionCoprocessorEnvironment> e, byte[] row, byte[] family, byte[] qualifier, CompareOperator compareOp, ByteArrayComparable comparator, Put put, boolean result) throws IOException
preCheckAndPut in interface RegionObserverIOExceptionpublic boolean preCheckAndPutAfterRowLock(ObserverContext<RegionCoprocessorEnvironment> e, byte[] row, byte[] family, byte[] qualifier, CompareOperator compareOp, ByteArrayComparable comparator, Put put, boolean result) throws IOException
preCheckAndPutAfterRowLock in interface RegionObserverIOExceptionpublic boolean postCheckAndPut(ObserverContext<RegionCoprocessorEnvironment> e, byte[] row, byte[] family, byte[] qualifier, CompareOperator compareOp, ByteArrayComparable comparator, Put put, boolean result) throws IOException
postCheckAndPut in interface RegionObserverIOExceptionpublic boolean preCheckAndDelete(ObserverContext<RegionCoprocessorEnvironment> e, byte[] row, byte[] family, byte[] qualifier, CompareOperator compareOp, ByteArrayComparable comparator, Delete delete, boolean result) throws IOException
preCheckAndDelete in interface RegionObserverIOExceptionpublic boolean preCheckAndDeleteAfterRowLock(ObserverContext<RegionCoprocessorEnvironment> e, byte[] row, byte[] family, byte[] qualifier, CompareOperator compareOp, ByteArrayComparable comparator, Delete delete, boolean result) throws IOException
preCheckAndDeleteAfterRowLock in interface RegionObserverIOExceptionpublic boolean postCheckAndDelete(ObserverContext<RegionCoprocessorEnvironment> e, byte[] row, byte[] family, byte[] qualifier, CompareOperator compareOp, ByteArrayComparable comparator, Delete delete, boolean result) throws IOException
postCheckAndDelete in interface RegionObserverIOExceptionpublic Result preAppendAfterRowLock(ObserverContext<RegionCoprocessorEnvironment> e, Append append) throws IOException
preAppendAfterRowLock in interface RegionObserverIOExceptionpublic Result preAppend(ObserverContext<RegionCoprocessorEnvironment> e, Append append) throws IOException
preAppend in interface RegionObserverIOExceptionpublic Result postAppend(ObserverContext<RegionCoprocessorEnvironment> e, Append append, Result result) throws IOException
postAppend in interface RegionObserverIOExceptionpublic void preBulkLoadHFile(ObserverContext<RegionCoprocessorEnvironment> ctx, List<Pair<byte[],String>> familyPaths) throws IOException
preBulkLoadHFile in interface RegionObserverIOExceptionpublic void postBulkLoadHFile(ObserverContext<RegionCoprocessorEnvironment> ctx, List<Pair<byte[],String>> familyPaths, Map<byte[],List<org.apache.hadoop.fs.Path>> map) throws IOException
postBulkLoadHFile in interface RegionObserverIOExceptionpublic void preReplayWALs(ObserverContext<? extends RegionCoprocessorEnvironment> env, RegionInfo info, org.apache.hadoop.fs.Path edits) throws IOException
preReplayWALs in interface RegionObserverIOExceptionpublic void postReplayWALs(ObserverContext<? extends RegionCoprocessorEnvironment> env, RegionInfo info, org.apache.hadoop.fs.Path edits) throws IOException
postReplayWALs in interface RegionObserverIOExceptionpublic void preWALRestore(ObserverContext<? extends RegionCoprocessorEnvironment> env, RegionInfo info, WALKey logKey, WALEdit logEdit) throws IOException
preWALRestore in interface RegionObserverIOExceptionpublic void postWALRestore(ObserverContext<? extends RegionCoprocessorEnvironment> env, RegionInfo info, WALKey logKey, WALEdit logEdit) throws IOException
postWALRestore in interface RegionObserverIOExceptionpublic StoreFileReader preStoreFileReaderOpen(ObserverContext<RegionCoprocessorEnvironment> ctx, org.apache.hadoop.fs.FileSystem fs, org.apache.hadoop.fs.Path p, FSDataInputStreamWrapper in, long size, CacheConfig cacheConf, Reference r, StoreFileReader reader) throws IOException
preStoreFileReaderOpen in interface RegionObserverIOExceptionpublic StoreFileReader postStoreFileReaderOpen(ObserverContext<RegionCoprocessorEnvironment> ctx, org.apache.hadoop.fs.FileSystem fs, org.apache.hadoop.fs.Path p, FSDataInputStreamWrapper in, long size, CacheConfig cacheConf, Reference r, StoreFileReader reader) throws IOException
postStoreFileReaderOpen in interface RegionObserverIOExceptionpublic boolean hadPreGet()
public boolean hadPostGet()
public boolean hadPrePut()
public boolean hadPostPut()
public boolean hadPreBatchMutate()
public boolean hadPostBatchMutate()
public boolean hadPostBatchMutateIndispensably()
public boolean hadPostStartRegionOperation()
public boolean hadPostCloseRegionOperation()
public boolean hadDelete()
public int getCtPostStartRegionOperation()
public int getCtPostCloseRegionOperation()
public boolean hadPreCheckAndPut()
public boolean hadPreCheckAndPutAfterRowLock()
public boolean hadPostCheckAndPut()
public boolean hadPreCheckAndDelete()
public boolean hadPreCheckAndDeleteAfterRowLock()
public boolean hadPostCheckAndDelete()
public boolean hadPreIncrement()
public boolean hadPreIncrementAfterRowLock()
public boolean hadPostIncrement()
public boolean hadPreAppend()
public boolean hadPreAppendAfterRowLock()
public boolean hadPostAppend()
public boolean hadPrePreparedDeleteTS()
public boolean hadPreReplayWALs()
public boolean hadPostReplayWALs()
public boolean hadPreWALRestore()
public boolean hadPostWALRestore()
public boolean wasScannerNextCalled()
public boolean wasScannerFilterRowCalled()
public boolean wasScannerCloseCalled()
public boolean wasScannerOpenCalled()
public boolean hadDeleted()
public boolean hadPostBulkLoadHFile()
public boolean hadPreBulkLoadHFile()
public int getCtBeforeDelete()
public int getCtPreOpen()
public int getCtPostOpen()
public int getCtPreClose()
public int getCtPostClose()
public int getCtPreFlush()
public int getCtPostFlush()
public int getCtPreCompactSelect()
public int getCtPostCompactSelect()
public int getCtPreCompact()
public int getCtPostCompact()
public int getCtPreGet()
public int getCtPostGet()
public int getCtPrePut()
public int getCtPostPut()
public int getCtPreDeleted()
public int getCtPostDeleted()
public int getCtPreIncrement()
public int getCtPostIncrement()
public int getCtPreReplayWALs()
public int getCtPostReplayWALs()
public int getCtPreWALRestore()
public int getCtPostWALRestore()
public boolean wasStoreFileReaderOpenCalled()
Copyright © 2007–2019 Cloudera. All rights reserved.