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 Summary
Constructors
-
Method Summary
long
long
Return the storage estimated size, in bytes.
void
int
Get the number of entries.
-
-
Method Details
-
-
add
public long add(String key,
long value)
-
put
public void put(String key,
long value)
-
-
-
getStorageSize
public long getStorageSize()
Return the storage estimated size, in bytes.
-
size
public int size()
Get the number of entries.