Enum Class NestedStructMode

java.lang.Object
java.lang.Enum<NestedStructMode>
org.gridgain.kafka.sink.NestedStructMode
All Implemented Interfaces:
Serializable, Comparable<NestedStructMode>, Constable

public enum NestedStructMode extends Enum<NestedStructMode>
Nested STRUCT handling mode.
  • Enum Constant Details

    • CONCAT

      public static final NestedStructMode CONCAT
      Concatenate nested structure field names. For example, `{"a": {"b": 1}}` will be mapped to column "A_B" in the table.
    • FLATTEN

      public static final NestedStructMode FLATTEN
      Flatten nested structures. For example, `{"a": {"b": 1}}` will be mapped to column "B" in the table.
    • IGNORE

      public static final NestedStructMode IGNORE
      Ignore nested structures (skip fields of type STRUCT).
    • DISALLOW

      public static final NestedStructMode DISALLOW
      Disallow nested structures (throw an exception if a field of type STRUCT is encountered).
  • Method Details

    • values

      public static NestedStructMode[] 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 NestedStructMode 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