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 long
removeCompleteRecords(Connector conn, BatchScanner bs, BatchWriter bw)
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)
void
run()
-
-
-
Constructor Detail
-
RemoveCompleteReplicationRecords
public RemoveCompleteReplicationRecords(Connector conn)
-
-
Method Detail
-
removeCompleteRecords
protected long removeCompleteRecords(Connector conn, BatchScanner bs, BatchWriter bw)
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:
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)
-
-