org.geotools.caching.spatialindex
Class SpatialIndexStatistics
java.lang.Object
org.geotools.caching.spatialindex.SpatialIndexStatistics
- All Implemented Interfaces:
- Statistics
- Direct Known Subclasses:
- GridSpatialIndexStatistics
public class SpatialIndexStatistics
- extends java.lang.Object
- implements Statistics
Data structure to store statistics about a spatial index.
Tracks:
Number of reads.
Number of writes.
Number of nodes.
Size of data.
- Author:
- Christophe Rousson, SoC 2007, CRG-ULAVAL
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
SpatialIndexStatistics
public SpatialIndexStatistics()
getNumberOfData
public long getNumberOfData()
- Specified by:
getNumberOfData
in interface Statistics
getNumberOfNodes
public long getNumberOfNodes()
- Specified by:
getNumberOfNodes
in interface Statistics
getReads
public long getReads()
- Specified by:
getReads
in interface Statistics
getWrites
public long getWrites()
- Specified by:
getWrites
in interface Statistics
addToReadsCounter
public void addToReadsCounter(int count)
addToWritesCounter
public void addToWritesCounter(int count)
addToNodesCounter
public void addToNodesCounter(int count)
addToDataCounter
public void addToDataCounter(int count)
reset
public void reset()
toString
public java.lang.String toString()
- Overrides:
toString
in class java.lang.Object
Copyright © 1996-2010 Geotools. All Rights Reserved.