org.hibernate.search.stat.spi.StatisticsImplementor Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of hibernate-search-engine Show documentation
Show all versions of hibernate-search-engine Show documentation
Core of the Object/Lucene mapper, query engine and index management
/*
* Hibernate Search, full-text search for your domain model
*
* License: GNU Lesser General Public License (LGPL), version 2.1 or later
* See the lgpl.txt file in the root directory or .
*/
// $Id:$
package org.hibernate.search.stat.spi;
/**
* Statistics SPI for the Search. This is essentially the "statistic collector" API.
*
* @author Hardy Ferentschik
*/
public interface StatisticsImplementor {
/**
* Callback for number of object loaded from the db.
*
* @param numberOfObjectsLoaded Number of objects loaded
* @param time time in nanoseconds to load the objects
*/
void objectLoadExecuted(long numberOfObjectsLoaded, long time);
/**
* Callback for an executed Lucene search.
*
* @param searchString executed query string
* @param time time in nanoseconds to execute the search
*/
void searchExecuted(String searchString, long time);
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy