Class ChainWALEntryFilter
java.lang.Object
org.apache.hadoop.hbase.replication.ChainWALEntryFilter
- All Implemented Interfaces:
WALEntryFilter
@LimitedPrivate("Replication")
public class ChainWALEntryFilter
extends Object
implements WALEntryFilter
A
WALEntryFilter which contains multiple filters and applies them in chain order-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionChainWALEntryFilter(List<WALEntryFilter> filters) ChainWALEntryFilter(WALEntryFilter... filters) -
Method Summary
Modifier and TypeMethodDescriptionApplies the filter, possibly returning a different Entry instance.private voidfilterCells(WAL.Entry entry) void
-
Field Details
-
filters
-
cellFilters
-
-
Constructor Details
-
ChainWALEntryFilter
-
ChainWALEntryFilter
-
-
Method Details
-
initCellFilters
-
filter
Description copied from interface:WALEntryFilterApplies the filter, possibly returning a different Entry instance. If null is returned, the entry will be skipped.
Notice that you are free to modify the cell list of the give entry, but do not change the content of the cell, it may be used by others at the same time(and usually you can not modify a cell unless you cast it to the implementation class, which is not a good idea).
- Specified by:
filterin interfaceWALEntryFilter- Parameters:
entry- Entry to filter- Returns:
- a (possibly modified) Entry to use. Returning null or an entry with no cells will cause the entry to be skipped for replication.
-
filterCells
-