org.geotools.caching.spatialindex
Class SpatialIndexStatistics

java.lang.Object
  extended by 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

    Constructor Summary
    SpatialIndexStatistics()
               
     
    Method Summary
     void addToDataCounter(int count)
               
     void addToNodesCounter(int count)
               
     void addToReadsCounter(int count)
               
     void addToWritesCounter(int count)
               
     long getNumberOfData()
               
     long getNumberOfNodes()
               
     long getReads()
               
     long getWrites()
               
     void reset()
               
     java.lang.String toString()
               
     
    Methods inherited from class java.lang.Object
    clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
     

    Constructor Detail

    SpatialIndexStatistics

    public SpatialIndexStatistics()
    Method Detail

    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.