Package io.debezium.converters
Enum SerializerType
- java.lang.Object
-
- java.lang.Enum<SerializerType>
-
- io.debezium.converters.SerializerType
-
- All Implemented Interfaces:
Serializable
,Comparable<SerializerType>
public enum SerializerType extends Enum<SerializerType>
A set of available serializer types for CloudEvents or the data attribute of CloudEvents.
-
-
Field Summary
Fields Modifier and Type Field Description private String
name
private static Map<String,SerializerType>
NAME_TO_TYPE
-
Constructor Summary
Constructors Modifier Constructor Description private
SerializerType()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getName()
static SerializerType
valueOf(String name)
Returns the enum constant of this type with the specified name.static SerializerType[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.static SerializerType
withName(String name)
-
-
-
Enum Constant Detail
-
JSON
public static final SerializerType JSON
Using JSON as serialization format
-
AVRO
public static final SerializerType AVRO
Using Avro as serialization format
-
-
Field Detail
-
NAME_TO_TYPE
private static final Map<String,SerializerType> NAME_TO_TYPE
-
name
private String name
-
-
Method Detail
-
values
public static SerializerType[] 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 (SerializerType c : SerializerType.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static SerializerType 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 nameNullPointerException
- if the argument is null
-
withName
public static SerializerType withName(String name)
-
getName
public String getName()
-
-