Enum SchemaFieldType

    • 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<FieldDescriptor> createFrom​(String fieldName,
                                                                      org.codehaus.jackson.JsonNode jsonNode)