All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.hibernate.search.stat.spi.StatisticsImplementor Maven / Gradle / Ivy

There is a newer version: 9.1.7.Final
Show newest version
/*
 * 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 - 2024 Weber Informatics LLC | Privacy Policy