@Internal public class OrphanedMetadataCleaner extends java.lang.Object
Constructor and Description |
---|
OrphanedMetadataCleaner() |
Modifier and Type | Method and Description |
---|---|
void |
addIncompleteNewPartitions(NewPartition newPartition)
Add NewPartition if it hasn't been updated for 15 minutes.
|
void |
addMissingPartitions(java.util.List<com.google.cloud.bigtable.data.v2.models.Range.ByteStringRange> missingPartitions)
Add all the missingPartitions.
|
java.util.List<NewPartition> |
getOrphanedNewPartitions()
Returns a list of NewPartition that have been around for a while and do not overlap with any
missing partition.
|
public void addIncompleteNewPartitions(NewPartition newPartition)
newPartition
- new partition to clean up.public void addMissingPartitions(java.util.List<com.google.cloud.bigtable.data.v2.models.Range.ByteStringRange> missingPartitions)
missingPartitions
- add missingPartitions.public java.util.List<NewPartition> getOrphanedNewPartitions()
Must call addMissingPartitions
before otherwise no orphan can be cleaned up.