Class RemoveCompleteReplicationRecords
- java.lang.Object
-
- org.apache.accumulo.master.replication.RemoveCompleteReplicationRecords
-
-
Constructor Summary
Constructors Constructor Description RemoveCompleteReplicationRecords(Connector conn)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected longremoveCompleteRecords(Connector conn, BatchScanner bs, BatchWriter bw)RemovesReplication.Statusrecords read from the givenbsand writes a delete, using the givenbw, when thatReplication.Statusis fully replicated and closed, as defined byStatusUtil.isSafeForRemoval(org.apache.accumulo.server.replication.proto.Replication.Status).protected longremoveRowIfNecessary(BatchWriter bw, SortedMap<Key,Value> columns, org.apache.hadoop.io.Text row, org.apache.hadoop.io.Text colf, org.apache.hadoop.io.Text colq)voidrun()
-
-
-
Constructor Detail
-
RemoveCompleteReplicationRecords
public RemoveCompleteReplicationRecords(Connector conn)
-
-
Method Detail
-
removeCompleteRecords
protected long removeCompleteRecords(Connector conn, BatchScanner bs, BatchWriter bw)
RemovesReplication.Statusrecords read from the givenbsand writes a delete, using the givenbw, when thatReplication.Statusis fully replicated and closed, as defined byStatusUtil.isSafeForRemoval(org.apache.accumulo.server.replication.proto.Replication.Status).- Parameters:
conn- A Connectorbs- 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)
-
-