org.apache.hadoop.hbase.regionserver
Class BaseRowProcessor<S extends com.google.protobuf.Message,T extends com.google.protobuf.Message>

java.lang.Object
  extended by org.apache.hadoop.hbase.regionserver.BaseRowProcessor<S,T>
All Implemented Interfaces:
RowProcessor<S,T>

public abstract class BaseRowProcessor<S extends com.google.protobuf.Message,T extends com.google.protobuf.Message>
extends Object
implements RowProcessor<S,T>

Base class for RowProcessor with some default implementations.


Constructor Summary
BaseRowProcessor()
           
 
Method Summary
 UUID getClusterId()
           
 String getName()
          Human readable name of the processor
 void postProcess(HRegion region, WALEdit walEdit)
          The hook to be executed after process().
 void preProcess(HRegion region, WALEdit walEdit)
          The hook to be executed before process().
 Durability useDurability()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.apache.hadoop.hbase.regionserver.RowProcessor
getRequestData, getResult, getRowsToLock, initialize, process, readOnly
 

Constructor Detail

BaseRowProcessor

public BaseRowProcessor()
Method Detail

preProcess

public void preProcess(HRegion region,
                       WALEdit walEdit)
                throws IOException
Description copied from interface: RowProcessor
The hook to be executed before process().

Specified by:
preProcess in interface RowProcessor<S extends com.google.protobuf.Message,T extends com.google.protobuf.Message>
Parameters:
region - the HRegion
walEdit - the output WAL edits to apply to write ahead log
Throws:
IOException

postProcess

public void postProcess(HRegion region,
                        WALEdit walEdit)
                 throws IOException
Description copied from interface: RowProcessor
The hook to be executed after process().

Specified by:
postProcess in interface RowProcessor<S extends com.google.protobuf.Message,T extends com.google.protobuf.Message>
Parameters:
region - the HRegion
walEdit - the output WAL edits to apply to write ahead log
Throws:
IOException

getClusterId

public UUID getClusterId()
Specified by:
getClusterId in interface RowProcessor<S extends com.google.protobuf.Message,T extends com.google.protobuf.Message>
Returns:
The replication cluster id.

getName

public String getName()
Description copied from interface: RowProcessor
Human readable name of the processor

Specified by:
getName in interface RowProcessor<S extends com.google.protobuf.Message,T extends com.google.protobuf.Message>
Returns:
The name of the processor

useDurability

public Durability useDurability()
Specified by:
useDurability in interface RowProcessor<S extends com.google.protobuf.Message,T extends com.google.protobuf.Message>
Returns:
The Durability to use


Copyright © 2013 The Apache Software Foundation. All Rights Reserved.