Class Enum


  • public class Enum
    extends Object
    A semantic type for an enumeration, where the string values are one of the enumeration's values.
    Author:
    Randall Hauch
    • Constructor Detail

      • Enum

        public Enum()
    • Method Detail

      • builder

        public static org.apache.kafka.connect.data.SchemaBuilder builder​(String allowedValues)
        Returns a SchemaBuilder for an enumeration. You can use the resulting SchemaBuilder to set additional schema settings such as required/optional, default value, and documentation.
        Parameters:
        allowedValues - the comma separated list of allowed values; may not be null
        Returns:
        the schema builder
      • builder

        public static org.apache.kafka.connect.data.SchemaBuilder builder​(List<String> allowedValues)
        Returns a SchemaBuilder for an enumeration. You can use the resulting SchemaBuilder to set additional schema settings such as required/optional, default value, and documentation.
        Parameters:
        allowedValues - the list of allowed values; may not be null
        Returns:
        the schema builder
      • schema

        public static org.apache.kafka.connect.data.Schema schema​(String allowedValues)
        Returns a SchemaBuilder for an enumeration, with all other default Schema settings.
        Parameters:
        allowedValues - the comma separated list of allowed values; may not be null
        Returns:
        the schema
        See Also:
        builder(String)
      • schema

        public static org.apache.kafka.connect.data.Schema schema​(List<String> allowedValues)
        Returns a SchemaBuilder for an enumeration, with all other default Schema settings.
        Parameters:
        allowedValues - the list of allowed values; may not be null
        Returns:
        the schema
        See Also:
        builder(String)