Class Storage
- java.lang.Object
-
- org.apache.jackrabbit.oak.index.indexer.document.flatfile.analysis.modules.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()
-
-
-
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 classjava.lang.Object
-
getStorageSize
public long getStorageSize()
Return the storage estimated size, in bytes.
-
size
public int size()
Get the number of entries.
-
-