org.apache.hadoop.hbase.constraint
Class ConstraintProcessor
java.lang.Object
org.apache.hadoop.hbase.coprocessor.BaseRegionObserver
org.apache.hadoop.hbase.constraint.ConstraintProcessor
- All Implemented Interfaces:
- Coprocessor, RegionObserver
public class ConstraintProcessor
- extends BaseRegionObserver
Processes multiple Constraints
on a given table.
This is an ease of use mechanism - all the functionality here could be
implemented on any given system by a coprocessor.
Methods inherited from class org.apache.hadoop.hbase.coprocessor.BaseRegionObserver |
postAppend, postBatchMutate, postBulkLoadHFile, postCheckAndDelete, postCheckAndPut, postClose, postCompact, postCompact, postCompactSelection, postCompactSelection, postDelete, postExists, postFlush, postFlush, postGet, postGetClosestRowBefore, postIncrement, postIncrementColumnValue, postLockRow, postOpen, postPut, postScannerClose, postScannerFilterRow, postScannerNext, postScannerOpen, postSplit, postUnlockRow, postWALRestore, preAppend, preBatchMutate, preBulkLoadHFile, preCheckAndDelete, preCheckAndPut, preClose, preCompact, preCompact, preCompactScannerOpen, preCompactScannerOpen, preCompactSelection, preCompactSelection, preDelete, preExists, preFlush, preFlush, preFlushScannerOpen, preGet, preGetClosestRowBefore, preIncrement, preIncrementColumnValue, preLockRow, preOpen, preScannerClose, preScannerNext, preScannerOpen, preSplit, preStoreScannerOpen, preUnlockRow, preWALRestore, stop |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ConstraintProcessor
public ConstraintProcessor()
- Create the constraint processor.
Stores the current classloader.
start
public void start(CoprocessorEnvironment environment)
- Specified by:
start
in interface Coprocessor
- Overrides:
start
in class BaseRegionObserver
prePut
public void prePut(ObserverContext<RegionCoprocessorEnvironment> e,
Put put,
WALEdit edit,
boolean writeToWAL)
throws IOException
- Description copied from interface:
RegionObserver
- Called before the client stores a value.
Call CoprocessorEnvironment#bypass to skip default actions
Call CoprocessorEnvironment#complete to skip any subsequent chained
coprocessors
- Specified by:
prePut
in interface RegionObserver
- Overrides:
prePut
in class BaseRegionObserver
- Parameters:
e
- the environment provided by the region serverput
- The Put objectedit
- The WALEdit object that will be written to the walwriteToWAL
- true if the change should be written to the WAL
- Throws:
IOException
- if an error occurred on the coprocessor
Copyright © 2014 The Apache Software Foundation. All Rights Reserved.