org.hibernate.search.stat.spi

## Interface StatisticsImplementor

- All Known Implementing Classes:
    StatisticsImpl

      public interface StatisticsImplementor

  Statistics SPI for the Search. This is essentially the "statistic collector" API.
  Author:
    Hardy Ferentschik

- - ### Method Summary

    All Methods Instance Methods Abstract Methods
    Modifier and Type | Method and Description
    --- | ---
    `void` | `objectLoadExecuted(long numberOfObjectsLoaded, long time)` Callback for number of object loaded from the db.
    `void` | `searchExecuted(String searchString, long time)` Callback for an executed Lucene search.

- - ### Method Detail

    - #### objectLoadExecuted

          void objectLoadExecuted(long numberOfObjectsLoaded,
                                  long time)

      Callback for number of object loaded from the db.
      Parameters:
        `numberOfObjectsLoaded` - Number of objects loaded
        `time` - time in nanoseconds to load the objects

    - #### searchExecuted

          void searchExecuted(String searchString,
                              long time)

      Callback for an executed Lucene search.
      Parameters:
        `searchString` - executed query string
        `time` - time in nanoseconds to execute the search

Copyright © 2006-2017 Red Hat, Inc. All Rights Reserved