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

org.hibernate.search.metadata.NumericFieldSettingsDescriptor Maven / Gradle / Ivy

There is a newer version: 5.11.12.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 .
 */

package org.hibernate.search.metadata;

/**
 * Metadata related to a numeric field
 *
 * @author Hardy Ferentschik
 */
public interface NumericFieldSettingsDescriptor extends FieldSettingsDescriptor {

	/**
	 * @return the numeric precision step for this numeric field.
	 */
	int precisionStep();

	/**
	 * @return the type of numeric field
	 */
	NumericEncodingType encodingType();

	/**
	 * Defines different logical field types
	 */
	enum NumericEncodingType {
		/**
		 * An integer encoded numeric field
		 */
		INTEGER,

		/**
		 * An long encoded numeric field
		 */
		LONG,

		/**
		 * An float encoded numeric field
		 */
		FLOAT,

		/**
		 * An double encoded numeric field
		 */
		DOUBLE,

		/**
		 * The encoding type of the numeric field is not known due to the use of a custom bridge
		 */
		UNKNOWN
	}
}






© 2015 - 2025 Weber Informatics LLC | Privacy Policy