org.apache.hadoop.hbase.constraint
Class ConstraintProcessor

java.lang.Object
  extended by org.apache.hadoop.hbase.coprocessor.BaseRegionObserver
      extended by org.apache.hadoop.hbase.constraint.ConstraintProcessor
All Implemented Interfaces:
Coprocessor, RegionObserver

@InterfaceAudience.Private
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.


Nested Class Summary
 
Nested classes/interfaces inherited from interface org.apache.hadoop.hbase.coprocessor.RegionObserver
RegionObserver.MutationType
 
Nested classes/interfaces inherited from interface org.apache.hadoop.hbase.Coprocessor
Coprocessor.State
 
Field Summary
 
Fields inherited from interface org.apache.hadoop.hbase.Coprocessor
PRIORITY_HIGHEST, PRIORITY_LOWEST, PRIORITY_SYSTEM, PRIORITY_USER, VERSION
 
Constructor Summary
ConstraintProcessor()
          Create the constraint processor.
 
Method Summary
 void prePut(ObserverContext<RegionCoprocessorEnvironment> e, Put put, WALEdit edit, Durability durability)
          Called before the client stores a value.
 void start(CoprocessorEnvironment environment)
           
 
Methods inherited from class org.apache.hadoop.hbase.coprocessor.BaseRegionObserver
postAppend, postBatchMutate, postBatchMutateIndispensably, postBulkLoadHFile, postCheckAndDelete, postCheckAndPut, postClose, postCloseRegionOperation, postCompact, postCompact, postCompactSelection, postCompactSelection, postCompleteSplit, postDelete, postExists, postFlush, postFlush, postGet, postGetClosestRowBefore, postGetOp, postIncrement, postIncrementColumnValue, postInstantiateDeleteTracker, postLogReplay, postMutationBeforeWAL, postOpen, postPut, postRollBackSplit, postScannerClose, postScannerFilterRow, postScannerNext, postScannerOpen, postSplit, postStartRegionOperation, postStoreFileReaderOpen, postWALRestore, preAppend, preAppendAfterRowLock, preBatchMutate, preBulkLoadHFile, preCheckAndDelete, preCheckAndDeleteAfterRowLock, preCheckAndPut, preCheckAndPutAfterRowLock, preClose, preCompact, preCompact, preCompactScannerOpen, preCompactScannerOpen, preCompactSelection, preCompactSelection, preDelete, preExists, preFlush, preFlush, preFlushScannerOpen, preGet, preGetClosestRowBefore, preGetOp, preIncrement, preIncrementAfterRowLock, preIncrementColumnValue, preOpen, prePrepareTimeStampForDeleteVersion, preRollBackSplit, preScannerClose, preScannerNext, preScannerOpen, preSplit, preSplit, preSplitAfterPONR, preSplitBeforePONR, preStoreFileReaderOpen, preStoreScannerOpen, preWALRestore, stop
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ConstraintProcessor

public ConstraintProcessor()
Create the constraint processor.

Stores the current classloader.

Method Detail

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,
                   Durability durability)
            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 server
put - The Put object
edit - The WALEdit object that will be written to the wal
durability - Persistence guarantee for this Put
Throws:
IOException - if an error occurred on the coprocessor


Copyright © 2007–2015 The Apache Software Foundation. All rights reserved.