com.atlassian.confluence.plugins.contentproperty.index.schema
Enum SchemaFieldType

java.lang.Object
  extended by java.lang.Enum<SchemaFieldType>
      extended by com.atlassian.confluence.plugins.contentproperty.index.schema.SchemaFieldType
All Implemented Interfaces:
Serializable, Comparable<SchemaFieldType>

public enum SchemaFieldType
extends Enum<SchemaFieldType>

Set of supported index field types.

Since:
5.7

Enum Constant Summary
DATE
          Indexed, not stored, not tokenized.
NUMBER
          Indexed, not stored, tokenized, 64-bit double numeric type.
STRING
          Indexed, not stored, not tokenized.
TEXT
          Indexed, not stored, tokenized.
 
Method Summary
 com.atlassian.fugue.Option<org.apache.lucene.index.IndexableField> createFrom(String fieldName, org.codehaus.jackson.JsonNode jsonNode)
           
static SchemaFieldType valueOf(String name)
          Returns the enum constant of this type with the specified name.
static SchemaFieldType[] 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

STRING

public static final SchemaFieldType STRING
Indexed, not stored, not tokenized. See StringField.TYPE_NOT_STORED for details.


TEXT

public static final SchemaFieldType TEXT
Indexed, not stored, tokenized. See TextField.TYPE_NOT_STORED for details.


NUMBER

public static final SchemaFieldType NUMBER
Indexed, not stored, tokenized, 64-bit double numeric type. See DoubleField.TYPE_NOT_STORED for details.


DATE

public static final SchemaFieldType DATE
Indexed, not stored, not tokenized. See StringField.TYPE_NOT_STORED for details.

Method Detail

values

public static SchemaFieldType[] 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 (SchemaFieldType c : SchemaFieldType.values())
    System.out.println(c);

Returns:
an array containing the constants of this enum type, in the order they are declared

valueOf

public static SchemaFieldType 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

createFrom

public com.atlassian.fugue.Option<org.apache.lucene.index.IndexableField> createFrom(String fieldName,
                                                                                     org.codehaus.jackson.JsonNode jsonNode)


Copyright © 2003–2015 Atlassian. All rights reserved.