Class ScopeWALEntryFilter
java.lang.Object
org.apache.hadoop.hbase.replication.ScopeWALEntryFilter
- All Implemented Interfaces:
WALCellFilter
,WALEntryFilter
Keeps KVs that are scoped other than local
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionApplies the filter, possibly returning a different Entry instance.filterCell
(WAL.Entry entry, Cell cell) Applies the filter, possibly returning a different Cell instance.private boolean
hasGlobalScope
(NavigableMap<byte[], Integer> scopes, byte[] family)
-
Field Details
-
bulkLoadFilter
-
-
Constructor Details
-
ScopeWALEntryFilter
public ScopeWALEntryFilter()
-
-
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
- 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.
-
filterCell
Description copied from interface:WALCellFilter
Applies the filter, possibly returning a different Cell instance. If null is returned, the cell will be skipped.- Specified by:
filterCell
in interfaceWALCellFilter
- Parameters:
entry
- Entry which contains the cellcell
- Cell to filter- Returns:
- a (possibly modified) Cell to use. Returning null will cause the cell to be skipped for replication.
-