@InterfaceAudience.LimitedPrivate(value="Replication") public class ChainWALEmptyEntryFilter extends ChainWALEntryFilter
ChainWALEntryFilter
for providing more flexible optionsModifier and Type | Field and Description |
---|---|
private boolean |
filterEmptyEntry |
Constructor and Description |
---|
ChainWALEmptyEntryFilter(List<WALEntryFilter> filters) |
ChainWALEmptyEntryFilter(WALEntryFilter... filters) |
Modifier and Type | Method and Description |
---|---|
WAL.Entry |
filter(WAL.Entry entry)
Applies 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 though
WALCellFilter . |
filterCells, filterEntry, initCellFilters
private boolean filterEmptyEntry
public ChainWALEmptyEntryFilter(WALEntryFilter... filters)
public ChainWALEmptyEntryFilter(List<WALEntryFilter> filters)
public WAL.Entry filter(WAL.Entry entry)
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).
filter
in interface WALEntryFilter
filter
in class ChainWALEntryFilter
entry
- Entry to filter@InterfaceAudience.Private public void setFilterEmptyEntry(boolean filterEmptyEntry)
WALCellFilter
.filterEmptyEntry
- flagCopyright © 2007–2020 The Apache Software Foundation. All rights reserved.