Class OrphanedMetadataCleaner
java.lang.Object
org.apache.beam.sdk.io.gcp.bigtable.changestreams.reconciler.OrphanedMetadataCleaner
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionvoidaddIncompleteNewPartitions(NewPartition newPartition) Add NewPartition if it hasn't been updated for 15 minutes.voidaddMissingPartitions(List<com.google.cloud.bigtable.data.v2.models.Range.ByteStringRange> missingPartitions) Add all the missingPartitions.Returns a list of NewPartition that have been around for a while and do not overlap with any missing partition.
- 
Constructor Details- 
OrphanedMetadataCleanerpublic OrphanedMetadataCleaner()
 
- 
- 
Method Details- 
addIncompleteNewPartitionsAdd NewPartition if it hasn't been updated for 15 minutes.- Parameters:
- newPartition- new partition to clean up.
 
- 
addMissingPartitionspublic void addMissingPartitions(List<com.google.cloud.bigtable.data.v2.models.Range.ByteStringRange> missingPartitions) Add all the missingPartitions. This must be called in order evaluate orphaned new partition.- Parameters:
- missingPartitions- add missingPartitions.
 
- 
getOrphanedNewPartitionsReturns a list of NewPartition that have been around for a while and do not overlap with any missing partition.Must call addMissingPartitionsbefore otherwise no orphan can be cleaned up.- Returns:
- NewPartitions safe to clean up.
 
 
-