Package alluxio.util

Class BucketCounter


  • public class BucketCounter
    extends java.lang.Object
    Bucket Counter Utility.
    • Constructor Summary

      Constructors 
      Constructor Description
      BucketCounter​(java.util.List<java.lang.Long> intervals)
      Bucket Counter constructor.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.util.Map<java.lang.Long,​java.lang.Number> getCounters()  
      void insert​(java.lang.Long number)
      insert a number to be counted.
      void remove​(java.lang.Long number)
      remove a number to be counted.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • BucketCounter

        public BucketCounter​(java.util.List<java.lang.Long> intervals)
        Bucket Counter constructor.
        Parameters:
        intervals - sorted intervals for bucket counting
    • Method Detail

      • insert

        public void insert​(java.lang.Long number)
        insert a number to be counted.
        Parameters:
        number - the number to be counted
      • remove

        public void remove​(java.lang.Long number)
        remove a number to be counted.
        Parameters:
        number - the number to be counted
      • getCounters

        public java.util.Map<java.lang.Long,​java.lang.Number> getCounters()
        Returns:
        counters