Class Year

java.lang.Object
io.debezium.time.Year

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

    Fields
    Modifier and Type
    Field
    Description
    static final String
     
  • Constructor Summary

    Constructors
    Modifier
    Constructor
    Description
    private
     
  • Method Summary

    Modifier and Type
    Method
    Description
    static org.apache.kafka.connect.data.SchemaBuilder
    Returns a SchemaBuilder for a Year.
    static org.apache.kafka.connect.data.Schema
    Returns a Schema for a Year but with all other default Schema settings.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

  • Constructor Details

    • Year

      private Year()
  • Method Details

    • 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: