org.hibernate.search.metadata.NumericFieldSettingsDescriptor 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 .
*/
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