Class Storage


  • public class Storage
    extends java.lang.Object
    An in-memory storage for collectors. It allows to measure the amount of memory used.
    • Constructor Summary

      Constructors 
      Constructor Description
      Storage()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      long add​(java.lang.String key, long value)  
      java.util.Set<java.util.Map.Entry<java.lang.String,​java.lang.Long>> entrySet()  
      java.lang.Long get​(java.lang.String key)  
      long getStorageSize()
      Return the storage estimated size, in bytes.
      void put​(java.lang.String key, long value)  
      int size()
      Get the number of entries.
      java.lang.String toString()  
      • Methods inherited from class java.lang.Object

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

      • Storage

        public Storage()
    • Method Detail

      • get

        public java.lang.Long get​(java.lang.String key)
      • add

        public long add​(java.lang.String key,
                        long value)
      • put

        public void put​(java.lang.String key,
                        long value)
      • entrySet

        public java.util.Set<java.util.Map.Entry<java.lang.String,​java.lang.Long>> entrySet()
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object
      • getStorageSize

        public long getStorageSize()
        Return the storage estimated size, in bytes.
      • size

        public int size()
        Get the number of entries.