Class ChainWALEmptyEntryFilter
java.lang.Object
org.apache.hadoop.hbase.replication.ChainWALEntryFilter
org.apache.hadoop.hbase.replication.ChainWALEmptyEntryFilter
- All Implemented Interfaces:
WALEntryFilter
A
ChainWALEntryFilter
for providing more flexible options-
Field Summary
-
Constructor Summary
ConstructorDescriptionChainWALEmptyEntryFilter
(List<WALEntryFilter> filters) ChainWALEmptyEntryFilter
(WALEntryFilter... filters) -
Method Summary
Modifier and TypeMethodDescriptionApplies the filter, possibly returning a different Entry instance.void
setFilterEmptyEntry
(boolean filterEmptyEntry) To allow the empty entries to get filtered, we want to set this optional flag to decide if we want to filter the entries which have no cells or all cells got filtered thoughWALCellFilter
.Methods inherited from class org.apache.hadoop.hbase.replication.ChainWALEntryFilter
filterCells, filterEntry, initCellFilters
-
Field Details
-
filterEmptyEntry
-
-
Constructor Details
-
ChainWALEmptyEntryFilter
-
ChainWALEmptyEntryFilter
-
-
Method Details
-
filter
Description copied from interface:WALEntryFilter
Applies 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:
filter
in interfaceWALEntryFilter
- Overrides:
filter
in classChainWALEntryFilter
- 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.
-
setFilterEmptyEntry
To allow the empty entries to get filtered, we want to set this optional flag to decide if we want to filter the entries which have no cells or all cells got filtered thoughWALCellFilter
.- Parameters:
filterEmptyEntry
- flag
-