java.lang.Object
org.apache.jackrabbit.oak.index.indexer.document.flatfile.analysis.modules.Storage

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

    • Storage

      public Storage()
  • Method Details

    • get

      public Long get(String key)
    • add

      public long add(String key, long value)
    • put

      public void put(String key, long value)
    • entrySet

      public Set<Map.Entry<String,Long>> entrySet()
    • toString

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

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

      public int size()
      Get the number of entries.