Class ClusterMarkingEntryFilter
java.lang.Object
org.apache.hadoop.hbase.replication.WALEntryFilterBase
org.apache.hadoop.hbase.replication.ClusterMarkingEntryFilter
- All Implemented Interfaces:
WALEntryFilter
@LimitedPrivate("Replication")
@Evolving
public class ClusterMarkingEntryFilter
extends WALEntryFilterBase
Filters out entries with our peerClusterId (i.e. already replicated) and marks all other entries
with our clusterID
-
Field Summary
FieldsFields inherited from class org.apache.hadoop.hbase.replication.WALEntryFilterBase
serial
-
Constructor Summary
ConstructorsConstructorDescriptionClusterMarkingEntryFilter
(UUID clusterId, UUID peerClusterId, ReplicationEndpoint replicationEndpoint) -
Method Summary
Methods inherited from class org.apache.hadoop.hbase.replication.WALEntryFilterBase
clearOrNull, setSerial
-
Field Details
-
clusterId
-
peerClusterId
-
replicationEndpoint
-
-
Constructor Details
-
ClusterMarkingEntryFilter
public ClusterMarkingEntryFilter(UUID clusterId, UUID peerClusterId, ReplicationEndpoint replicationEndpoint) - Parameters:
clusterId
- id of this clusterpeerClusterId
- of the other clusterreplicationEndpoint
- ReplicationEndpoint which will handle the actual replication
-
-
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).
- 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.
-