org.apache.hadoop.hbase.regionserver
Class BaseRowProcessor<S extends com.google.protobuf.Message,T extends com.google.protobuf.Message>
java.lang.Object
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.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
BaseRowProcessor
public BaseRowProcessor()
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 HRegionwalEdit
- 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 HRegionwalEdit
- 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.