Class RemoveCompleteReplicationRecords
- java.lang.Object
-
- org.apache.accumulo.manager.replication.RemoveCompleteReplicationRecords
-
- All Implemented Interfaces:
Runnable
@Deprecated public class RemoveCompleteReplicationRecords extends Object implements Runnable
Deprecated.Delete replication entries from the replication table that are fully replicated and closed
-
-
Constructor Summary
Constructors Constructor Description RemoveCompleteReplicationRecords(AccumuloClient client)
Deprecated.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description protected long
removeCompleteRecords(AccumuloClient client, BatchScanner bs, BatchWriter bw)
Deprecated.RemovesReplication.Status
records read from the givenbs
and writes a delete, using the givenbw
, when thatReplication.Status
is fully replicated and closed, as defined byStatusUtil.isSafeForRemoval(org.apache.accumulo.server.replication.proto.Replication.Status)
.protected long
removeRowIfNecessary(BatchWriter bw, SortedMap<Key,Value> columns, org.apache.hadoop.io.Text row, org.apache.hadoop.io.Text colf, org.apache.hadoop.io.Text colq)
Deprecated.void
run()
Deprecated.
-
-
-
Constructor Detail
-
RemoveCompleteReplicationRecords
public RemoveCompleteReplicationRecords(AccumuloClient client)
Deprecated.
-
-
Method Detail
-
removeCompleteRecords
protected long removeCompleteRecords(AccumuloClient client, BatchScanner bs, BatchWriter bw)
Deprecated.RemovesReplication.Status
records read from the givenbs
and writes a delete, using the givenbw
, when thatReplication.Status
is fully replicated and closed, as defined byStatusUtil.isSafeForRemoval(org.apache.accumulo.server.replication.proto.Replication.Status)
.- Parameters:
client
- Accumulo clientbs
- A BatchScanner to read replication status records frombw
- A BatchWriter to write deletes to- Returns:
- Number of records removed
-
removeRowIfNecessary
protected long removeRowIfNecessary(BatchWriter bw, SortedMap<Key,Value> columns, org.apache.hadoop.io.Text row, org.apache.hadoop.io.Text colf, org.apache.hadoop.io.Text colq)
Deprecated.
-
-