it.unimi.di.mg4j.document
Enum DocumentFactory.FieldType

java.lang.Object
  extended by java.lang.Enum<DocumentFactory.FieldType>
      extended by it.unimi.di.mg4j.document.DocumentFactory.FieldType
All Implemented Interfaces:
Serializable, Comparable<DocumentFactory.FieldType>
Enclosing interface:
DocumentFactory

public static enum DocumentFactory.FieldType
extends Enum<DocumentFactory.FieldType>

A field type.


Enum Constant Summary
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: an ObjectList of Scan.VirtualDocumentFragments.
 
Method Summary
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.
 
Methods inherited from class java.lang.Enum
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

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: an ObjectList of Scan.VirtualDocumentFragments.


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. This method may be used to iterate over the constants as follows:
for (DocumentFactory.FieldType c : DocumentFactory.FieldType.values())
    System.out.println(c);

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 name
NullPointerException - if the argument is null