Package org.apache.cassandra.metrics
Class TopPartitionTracker.TopHolder
java.lang.Object
org.apache.cassandra.metrics.TopPartitionTracker.TopHolder
- Enclosing class:
- TopPartitionTracker
-
Field Summary
FieldsModifier and TypeFieldDescriptionfinal long -
Method Summary
Modifier and TypeMethodDescriptionmerge(TopPartitionTracker.TopHolder holder, Collection<Range<Token>> ownedRanges) we merge any pre-existing top partitions on to the ones we just collected if they are outside of the range collected.toMap(TableMetadata metadata) toString()voidtrack(DecoratedKey key, long value)
-
Field Details
-
top
-
lastUpdate
public final long lastUpdate
-
-
Method Details
-
track
-
merge
public TopPartitionTracker.TopHolder merge(TopPartitionTracker.TopHolder holder, Collection<Range<Token>> ownedRanges) we merge any pre-existing top partitions on to the ones we just collected if they are outside of the range collected. This means that if a large partition is deleted it will disappear from the top partitions- Parameters:
holder- the newly collected holder - this will get copied and any existing token outside of the collected ranges will get added to the copyownedRanges- the ranges this node owns - any existing token outside of these ranges will get dropped
-
toString
-
toMap
-