Class Year


  • public class Year
    extends Object
    A utility for defining a Kafka Connect Schema that represents year values.
    Author:
    Randall Hauch
    • Constructor Detail

      • Year

        private Year()
    • Method Detail

      • builder

        public static org.apache.kafka.connect.data.SchemaBuilder builder()
        Returns a SchemaBuilder for a Year. The builder will create a schema that describes a field with the "io.debezium.time.Year" as the name and INT32 for the literal type storing the year number.

        You can use the resulting SchemaBuilder to set or override additional schema settings such as required/optional, default value, and documentation.

        Returns:
        the schema builder
      • schema

        public static org.apache.kafka.connect.data.Schema schema()
        Returns a Schema for a Year but with all other default Schema settings. The schema describes a field with the "io.debezium.time.Year" as the name and INT32 for the literal type storing the year number.
        Returns:
        the schema
        See Also:
        builder()