Package org.gridgain.kafka.sink
Enum Class NestedStructMode
- All Implemented Interfaces:
Serializable,Comparable<NestedStructMode>,Constable
Nested STRUCT handling mode.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum Constants -
Method Summary
Modifier and TypeMethodDescriptionstatic NestedStructModeReturns the enum constant of this class with the specified name.static NestedStructMode[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
CONCAT
Concatenate nested structure field names. For example, `{"a": {"b": 1}}` will be mapped to column "A_B" in the table. -
FLATTEN
Flatten nested structures. For example, `{"a": {"b": 1}}` will be mapped to column "B" in the table. -
IGNORE
Ignore nested structures (skip fields of type STRUCT). -
DISALLOW
Disallow nested structures (throw an exception if a field of type STRUCT is encountered).
-
-
Method Details
-
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
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 nameNullPointerException- if the argument is null
-