Enum Class FieldType

java.lang.Object
java.lang.Enum<FieldType>
org.elasticsearch.datageneration.FieldType
All Implemented Interfaces:
Serializable, Comparable<FieldType>, Constable

public enum FieldType extends Enum<FieldType>
Lists all leaf field types that are supported for data generation by default.
  • Enum Constant Details

    • KEYWORD

      public static final FieldType KEYWORD
    • LONG

      public static final FieldType LONG
    • UNSIGNED_LONG

      public static final FieldType UNSIGNED_LONG
    • INTEGER

      public static final FieldType INTEGER
    • SHORT

      public static final FieldType SHORT
    • BYTE

      public static final FieldType BYTE
    • DOUBLE

      public static final FieldType DOUBLE
    • FLOAT

      public static final FieldType FLOAT
    • HALF_FLOAT

      public static final FieldType HALF_FLOAT
    • SCALED_FLOAT

      public static final FieldType SCALED_FLOAT
    • COUNTED_KEYWORD

      public static final FieldType COUNTED_KEYWORD
    • BOOLEAN

      public static final FieldType BOOLEAN
    • DATE

      public static final FieldType DATE
    • GEO_POINT

      public static final FieldType GEO_POINT
    • TEXT

      public static final FieldType TEXT
    • IP

      public static final FieldType IP
    • CONSTANT_KEYWORD

      public static final FieldType CONSTANT_KEYWORD
    • WILDCARD

      public static final FieldType WILDCARD
    • MATCH_ONLY_TEXT

      public static final FieldType MATCH_ONLY_TEXT
  • Method Details

    • values

      public static FieldType[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static FieldType valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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 class has no constant with the specified name
      NullPointerException - if the argument is null
    • generator

      public FieldDataGenerator generator(String fieldName, DataSource dataSource)
    • tryParse

      public static FieldType tryParse(String name)
    • toString

      public String toString()
      Overrides:
      toString in class Enum<FieldType>