Package it.unimi.di.big.mg4j.document
Enum DocumentFactory.FieldType
- java.lang.Object
-
- java.lang.Enum<DocumentFactory.FieldType>
-
- it.unimi.di.big.mg4j.document.DocumentFactory.FieldType
-
- All Implemented Interfaces:
Serializable
,Comparable<DocumentFactory.FieldType>
,java.lang.constant.Constable
- Enclosing interface:
- DocumentFactory
public static enum DocumentFactory.FieldType extends Enum<DocumentFactory.FieldType>
A field type.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
-
Enum Constant Summary
Enum Constants Enum Constant Description DATE
A date (experimental).INT
A long integer between -262 (inclusive) and 262 (exclusive).TEXT
The most basic type: indexable text.VIRTUAL
A virtual field: anObjectList
ofScan.VirtualDocumentFragment
s.
-
Method Summary
Modifier and Type Method Description static DocumentFactory.FieldType
valueOf(String name)
Returns the enum constant of this type with the specified name.static DocumentFactory.FieldType[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
TEXT
public static final DocumentFactory.FieldType TEXT
The most basic type: indexable text.
-
VIRTUAL
public static final DocumentFactory.FieldType VIRTUAL
A virtual field: anObjectList
ofScan.VirtualDocumentFragment
s.
-
INT
public static final DocumentFactory.FieldType INT
A long integer between -262 (inclusive) and 262 (exclusive).
-
DATE
public static final DocumentFactory.FieldType DATE
A date (experimental).
-
-
Method Detail
-
values
public static DocumentFactory.FieldType[] 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
public static DocumentFactory.FieldType valueOf(String name)
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
-
-