Class TopPartitionTracker.TopHolder

java.lang.Object
org.apache.cassandra.metrics.TopPartitionTracker.TopHolder
Enclosing class:
TopPartitionTracker

public static class TopPartitionTracker.TopHolder extends Object
  • Field Details

  • Method Details

    • track

      public void track(DecoratedKey key, long value)
    • merge

      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 copy
      ownedRanges - the ranges this node owns - any existing token outside of these ranges will get dropped
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • toMap

      public Map<String,Long> toMap(TableMetadata metadata)