org.apache.hadoop.hbase.replication
Class ChainWALEntryFilter

java.lang.Object
  extended by org.apache.hadoop.hbase.replication.ChainWALEntryFilter
All Implemented Interfaces:
WALEntryFilter

@InterfaceAudience.LimitedPrivate(value="Replication")
public class ChainWALEntryFilter
extends Object
implements WALEntryFilter

A WALEntryFilter which contains multiple filters and applies them in chain order


Constructor Summary
ChainWALEntryFilter(List<WALEntryFilter> filters)
           
ChainWALEntryFilter(WALEntryFilter... filters)
           
 
Method Summary
 HLog.Entry filter(HLog.Entry entry)
          Applies the filter, possibly returning a different HLog.Entry instance.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ChainWALEntryFilter

public ChainWALEntryFilter(WALEntryFilter... filters)

ChainWALEntryFilter

public ChainWALEntryFilter(List<WALEntryFilter> filters)
Method Detail

filter

public HLog.Entry filter(HLog.Entry entry)
Description copied from interface: WALEntryFilter
Applies the filter, possibly returning a different HLog.Entry instance. If null is returned, the entry will be skipped.

Specified by:
filter in interface WALEntryFilter
Parameters:
entry - WAL Entry to filter
Returns:
a (possibly modified) HLog.Entry to use. Returning null or an entry with no cells will cause the entry to be skipped for replication.


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