Package org.apache.lucene.document
Enum FieldType.NumericType
- All Implemented Interfaces:
Serializable
,Comparable<FieldType.NumericType>
- Enclosing class:
- FieldType
Data type of the numeric value
- Since:
- 3.2
-
Enum Constant Summary
Enum Constants -
Method Summary
Modifier and TypeMethodDescriptionstatic FieldType.NumericType
Returns the enum constant of this type with the specified name.static FieldType.NumericType[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
INT
32-bit integer numeric type -
LONG
64-bit long numeric type -
FLOAT
32-bit float numeric type -
DOUBLE
64-bit double numeric type
-
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is null
-