public class TreeStatistics extends Object
Collection of AtomicLong
counters representing interesting
statistics in a Tree
. The store(byte[], int)
and load(byte[], int, int)
methods
are designed to serialize and deserialize evolving versions of this class,
therefore it is possible to add and remove new counters while remaining
compatible with prior versions.
Currently implemented counters include:
Constructor and Description |
---|
TreeStatistics() |
Modifier and Type | Method and Description |
---|---|
long |
getFetchCounter() |
long |
getRemoveCounter() |
long |
getStoreCounter() |
long |
getTraverseCounter() |
String |
toString() |
public long getFetchCounter()
Exchange.fetch()
operations, including
Exchange.fetchAndStore()
and
Exchange.fetchAndRemove()
operationspublic long getTraverseCounter()
Exchange.traverse(com.persistit.Key.Direction, boolean)
operations including
Exchange.next()
and Exchange.previous()
public long getStoreCounter()
Exchange.store(com.persistit.Key, com.persistit.Value)
operations, including
Exchange.fetchAndStore()
public long getRemoveCounter()
Exchange.remove()
operations, including
Exchange.fetchAndRemove()
operationsCopyright © 2025 Open Identity Platform Community. All rights reserved.