Package io.debezium.time
Class Year
- java.lang.Object
-
- io.debezium.time.Year
-
public class Year extends Object
A utility for defining a Kafka ConnectSchema
that represents year values.- Author:
- Randall Hauch
-
-
Field Summary
Fields Modifier and Type Field Description static String
SCHEMA_NAME
-
Constructor Summary
Constructors Modifier Constructor Description private
Year()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static org.apache.kafka.connect.data.SchemaBuilder
builder()
Returns aSchemaBuilder
for aYear
.static org.apache.kafka.connect.data.Schema
schema()
Returns a Schema for aYear
but with all other default Schema settings.
-
-
-
Field Detail
-
SCHEMA_NAME
public static final String SCHEMA_NAME
- See Also:
- Constant Field Values
-
-
Method Detail
-
builder
public static org.apache.kafka.connect.data.SchemaBuilder builder()
Returns aSchemaBuilder
for aYear
. The builder will create a schema that describes a field with the "io.debezium.time.Year" as thename
andINT32
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 aYear
but with all other default Schema settings. The schema describes a field with the "io.debezium.time.Year" as thename
andINT32
for the literal type storing the year number.- Returns:
- the schema
- See Also:
builder()
-
-